mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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();
|
String childPath = datacenterName + summary.getName();
|
||||||
poolInfo.setHostPath(childPath);
|
poolInfo.setHostPath(childPath);
|
||||||
String uuid = childDsMo.getCustomFieldValue(CustomFieldConstants.CLOUD_UUID);
|
String uuid = childDsMo.getCustomFieldValue(CustomFieldConstants.CLOUD_UUID);
|
||||||
if (uuid == null) {
|
if (uuid == null || !uuid.contains("-")) {
|
||||||
uuid = UUID.nameUUIDFromBytes(((pool.getHost() + childPath)).getBytes()).toString();
|
uuid = UUID.nameUUIDFromBytes(((pool.getHost() + childPath)).getBytes()).toString();
|
||||||
}
|
}
|
||||||
poolInfo.setUuid(uuid);
|
poolInfo.setUuid(uuid);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user