mirror of https://github.com/apache/cloudstack.git
Fix UUID for child datastores in all cases (#8057)
This commit is contained in:
parent
4a86a0d233
commit
76ab621a5a
|
|
@ -5210,7 +5210,7 @@ public class VmwareResource extends ServerResourceBase implements StoragePoolRes
|
|||
String childPath = datacenterName + summary.getName();
|
||||
poolInfo.setHostPath(childPath);
|
||||
String uuid = childDsMo.getCustomFieldValue(CustomFieldConstants.CLOUD_UUID);
|
||||
if (uuid == null) {
|
||||
if (uuid == null || !uuid.contains("-")) {
|
||||
uuid = UUID.nameUUIDFromBytes(((pool.getHost() + childPath)).getBytes()).toString();
|
||||
}
|
||||
poolInfo.setUuid(uuid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue