Skip to content

Commit f360f70

Browse files
vmware: do not tear down vm disks if deploy-as-is vm has vm snapshots (#9243)
1 parent 7e71e50 commit f360f70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ protected StartAnswer execute(StartCommand cmd) {
22032203
throw new Exception("Failed to find the newly create or relocated VM. vmName: " + vmInternalCSName);
22042204
}
22052205
}
2206-
if (deployAsIs) {
2206+
if (deployAsIs && !vmMo.hasSnapshot()) {
22072207
s_logger.info("Mapping VM disks to spec disks and tearing down datadisks (if any)");
22082208
mapSpecDisksToClonedDisksAndTearDownDatadisks(vmMo, vmInternalCSName, specDisks);
22092209
}

0 commit comments

Comments
 (0)