mirror of https://github.com/apache/cloudstack.git
add cluster guid
This commit is contained in:
parent
b33a180001
commit
8368355b31
|
|
@ -199,6 +199,12 @@ public class KvmServerDiscoverer extends DiscovererBase implements Discoverer,
|
|||
return null;
|
||||
|
||||
details.put("guid", guidWithTail);
|
||||
|
||||
// place a place holder guid derived from cluster ID
|
||||
if (cluster.getGuid() == null) {
|
||||
cluster.setGuid(UUID.nameUUIDFromBytes(String.valueOf(clusterId).getBytes()).toString());
|
||||
_clusterDao.update(clusterId, cluster);
|
||||
}
|
||||
return resources;
|
||||
} catch (DiscoveredWithErrorException e){
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Reference in New Issue