fixed addding the secondary storage

This commit is contained in:
anthony 2010-10-22 11:05:32 -07:00
parent 88f446f9d4
commit da58ade720

View File

@ -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 {