Merge release branch 4.18 to main

* 4.18:
  Fix UUID for child datastores in all cases (#8057)
This commit is contained in:
Daan Hoogland 2023-10-18 11:22:42 +02:00
commit 8eaf2648b6
1 changed files with 1 additions and 1 deletions

View File

@ -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);