Skip to content

Commit 00b8e4e

Browse files
authored
Apply suggestions from code review
1 parent 5ce8a5a commit 00b8e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ public void setKubernetesServiceHelpers(final List<KubernetesServiceHelper> kube
682682
HypervisorType.XenServer,
683683
HypervisorType.Simulator
684684
));
685-
public static final List<HypervisorType> VM_STORAGE_MIGRATION_WITH_SUPPORTING_SUPPORTING_HYPERVISORS = new ArrayList<>(Arrays.asList(
685+
public static final List<HypervisorType> VM_STORAGE_MIGRATION_WITH_SNAPSHOTS_SUPPORTING_HYPERVISORS = new ArrayList<>(Arrays.asList(
686686
HypervisorType.VMware
687687
));
688688

@@ -7232,7 +7232,7 @@ public VirtualMachine migrateVirtualMachineWithVolume(Long vmId, Host destinatio
72327232
throw new InvalidParameterValueException(String.format("Unsupported hypervisor: %s for VM migration, we support XenServer/VMware/KVM only", vm.getHypervisorType()));
72337233
}
72347234

7235-
if (!VM_STORAGE_MIGRATION_WITH_SUPPORTING_SUPPORTING_HYPERVISORS.contains(vm.getHypervisorType()) &&
7235+
if (!VM_STORAGE_MIGRATION_WITH_SNAPSHOTS_SUPPORTING_HYPERVISORS.contains(vm.getHypervisorType()) &&
72367236
CollectionUtils.isNotEmpty(_vmSnapshotDao.findByVm(vmId))) {
72377237
throw new InvalidParameterValueException("VM with VM Snapshots cannot be migrated with storage, please remove all VM snapshots");
72387238
}

0 commit comments

Comments
 (0)