mirror of https://github.com/apache/cloudstack.git
bug 12039, 12041: forgot one more place. Reviewed-by: kelven
This commit is contained in:
parent
67a2320001
commit
9676947175
|
|
@ -714,8 +714,10 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager {
|
|||
|
||||
clonedVm.exportVm(exportPath, exportName, true, true);
|
||||
} finally {
|
||||
if(clonedVm != null)
|
||||
clonedVm.destroy();
|
||||
if(clonedVm != null) {
|
||||
clonedVm.detachAllDisks();
|
||||
clonedVm.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue