diff --git a/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java b/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java index e76b34954c6c..6af074222fa2 100644 --- a/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java +++ b/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java @@ -5210,7 +5210,7 @@ protected Answer execute(ModifyStoragePoolCommand cmd) { 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);