Snapshot on dettached volume considering wrong path, corrected it

This commit is contained in:
Harikrishna Patnala 2020-09-11 17:29:35 +05:30
parent bc8ad68434
commit f74262b12a
1 changed files with 1 additions and 1 deletions

View File

@ -1895,7 +1895,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
}
workerVm = vmMo;
// attach volume to worker VM
String datastoreVolumePath = dsMo.getDatastorePath(volumePath + ".vmdk");
String datastoreVolumePath = VmwareStorageLayoutHelper.getLegacyDatastorePathFromVmdkFileName(dsMo, volumePath + ".vmdk");
vmMo.attachDisk(new String[] { datastoreVolumePath }, morDs);
} else {
s_logger.info("Using owner VM " + vmName + " for snapshot operation");