mirror of https://github.com/apache/cloudstack.git
Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss
This commit is contained in:
commit
67750795fa
|
|
@ -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…
Reference in New Issue