mirror of https://github.com/apache/cloudstack.git
vmware: do not tear down vm disks if deploy-as-is vm has vm snapshots (#9243)
This commit is contained in:
parent
7e71e50578
commit
f360f7048d
|
|
@ -2203,7 +2203,7 @@ public class VmwareResource extends ServerResourceBase implements StoragePoolRes
|
|||
throw new Exception("Failed to find the newly create or relocated VM. vmName: " + vmInternalCSName);
|
||||
}
|
||||
}
|
||||
if (deployAsIs) {
|
||||
if (deployAsIs && !vmMo.hasSnapshot()) {
|
||||
s_logger.info("Mapping VM disks to spec disks and tearing down datadisks (if any)");
|
||||
mapSpecDisksToClonedDisksAndTearDownDatadisks(vmMo, vmInternalCSName, specDisks);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue