mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
fixed addding the secondary storage
This commit is contained in:
parent
88f446f9d4
commit
da58ade720
@ -512,6 +512,10 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
|
||||
String url = cmd.getUrl();
|
||||
String username = cmd.getUsername();
|
||||
String password = cmd.getPassword();
|
||||
// this is for standalone option
|
||||
if( clusterName == null && clusterId == null ) {
|
||||
clusterName = "Standalone-" + url;
|
||||
}
|
||||
return discoverHosts(dcId, podId, clusterId, clusterName, url, username, password);
|
||||
}
|
||||
|
||||
@ -563,10 +567,6 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
|
||||
}
|
||||
}
|
||||
|
||||
if( clusterName == null && clusterId == null ) {
|
||||
clusterName = "Standalone" + url;
|
||||
}
|
||||
|
||||
if (clusterName != null) {
|
||||
ClusterVO cluster = new ClusterVO(dcId, podId, clusterName);
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user