Skip to content

Commit 8eaf264

Browse files
committed
Merge release branch 4.18 to main
* 4.18: Fix UUID for child datastores in all cases (#8057)
2 parents e35fdff + 76ab621 commit 8eaf264

File tree

1 file changed

+1
-1
lines changed
  • plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource

1 file changed

+1
-1
lines changed

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5219,7 +5219,7 @@ protected Answer execute(ModifyStoragePoolCommand cmd) {
52195219
String childPath = datacenterName + summary.getName();
52205220
poolInfo.setHostPath(childPath);
52215221
String uuid = childDsMo.getCustomFieldValue(CustomFieldConstants.CLOUD_UUID);
5222-
if (uuid == null) {
5222+
if (uuid == null || !uuid.contains("-")) {
52235223
uuid = UUID.nameUUIDFromBytes(((pool.getHost() + childPath)).getBytes()).toString();
52245224
}
52255225
poolInfo.setUuid(uuid);

0 commit comments

Comments
 (0)