Skip to content

Commit

Permalink
Fix UUID for child datastores in all cases (apache#8057)
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishna-patnala authored Oct 18, 2023
1 parent 4a86a0d commit 76ab621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 76ab621

Please sign in to comment.