Skip to content

Commit 76ab621

Browse files
Fix UUID for child datastores in all cases (apache#8057)
1 parent 4a86a0d commit 76ab621

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
@@ -5210,7 +5210,7 @@ protected Answer execute(ModifyStoragePoolCommand cmd) {
52105210
String childPath = datacenterName + summary.getName();
52115211
poolInfo.setHostPath(childPath);
52125212
String uuid = childDsMo.getCustomFieldValue(CustomFieldConstants.CLOUD_UUID);
5213-
if (uuid == null) {
5213+
if (uuid == null || !uuid.contains("-")) {
52145214
uuid = UUID.nameUUIDFromBytes(((pool.getHost() + childPath)).getBytes()).toString();
52155215
}
52165216
poolInfo.setUuid(uuid);

0 commit comments

Comments
 (0)