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
This commit is contained in:
Edison Su 2012-07-24 13:44:55 -07:00
parent 71050bb37f
commit 576d093e9c

View File

@ -2465,7 +2465,11 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
if (cmd.isAttach()) {
vmMo.mountToolsInstaller();
} else {
vmMo.unmountToolsInstaller();
try{
vmMo.unmountToolsInstaller();
}catch(Throwable e){
vmMo.detachIso(null);
}
}
return new Answer(cmd);