Dettached datadisk migration failed between NFS storages.

Fixed the issue of worker VM name being null
This commit is contained in:
Harikrishna Patnala 2020-09-16 10:50:56 +05:30
parent 818981d8a7
commit 6ebfdc6854
1 changed files with 1 additions and 2 deletions

View File

@ -4752,8 +4752,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
dsMo = new DatastoreMO(hyperHost.getContext(), morSourceDS);
morDestintionDS = HypervisorHostHelper.findDatastoreWithBackwardsCompatibility(hyperHost, cmd.getTargetPool().getUuid());
destinationDsMo = new DatastoreMO(hyperHost.getContext(), morDestintionDS);
if (dsMo.getDatastoreType().equalsIgnoreCase("VVOL"))
vmName = getWorkerName(getServiceContext(), cmd, 0, dsMo);
vmName = getWorkerName(getServiceContext(), cmd, 0, dsMo);
if (destinationDsMo.getDatastoreType().equalsIgnoreCase("VVOL"))
vmName = getWorkerName(getServiceContext(), cmd, 0, destinationDsMo);