Skip to content

Commit

Permalink
vmware: do not tear down vm disks if deploy-as-is vm has vm snapshots (
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache authored and dhslove committed Jun 20, 2024
1 parent 885f0dc commit 9fd8fe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ protected StartAnswer execute(StartCommand cmd) {
throw new Exception("Failed to find the newly create or relocated VM. vmName: " + vmInternalCSName);
}
}
if (deployAsIs) {
if (deployAsIs && !vmMo.hasSnapshot()) {
logger.info("Mapping VM disks to spec disks and tearing down datadisks (if any)");
mapSpecDisksToClonedDisksAndTearDownDatadisks(vmMo, vmInternalCSName, specDisks);
}
Expand Down

0 comments on commit 9fd8fe5

Please sign in to comment.