mirror of https://github.com/apache/cloudstack.git
Merge release branch 4.18 to main
* 4.18: Fix UUID for child datastores in all cases (#8057)
This commit is contained in:
commit
8eaf2648b6
|
|
@ -5219,7 +5219,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