mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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);
|
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)");
|
s_logger.info("Mapping VM disks to spec disks and tearing down datadisks (if any)");
|
||||||
mapSpecDisksToClonedDisksAndTearDownDatadisks(vmMo, vmInternalCSName, specDisks);
|
mapSpecDisksToClonedDisksAndTearDownDatadisks(vmMo, vmInternalCSName, specDisks);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user