mirror of https://github.com/apache/cloudstack.git
bug 12039, 12041: forgot one more place. Reviewed-by: kelven
This commit is contained in:
parent
1db4e8b3f5
commit
fc1854681a
|
|
@ -776,8 +776,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