Skip to content

Commit 576d093

Browse files
committed
fix CS-15432 Failed to detach VMware tools ISO after VMware tools
installation RB: https://reviews.apache.org/r/5738/ Send-by: mice_xia@tcloudcomputing.com
1 parent 71050bb commit 576d093

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,11 @@ protected Answer execute(AttachIsoCommand cmd) {
24652465
if (cmd.isAttach()) {
24662466
vmMo.mountToolsInstaller();
24672467
} else {
2468-
vmMo.unmountToolsInstaller();
2468+
try{
2469+
vmMo.unmountToolsInstaller();
2470+
}catch(Throwable e){
2471+
vmMo.detachIso(null);
2472+
}
24692473
}
24702474

24712475
return new Answer(cmd);

0 commit comments

Comments
 (0)