mirror of https://github.com/apache/cloudstack.git
bug 10355: let detachIso failure message be bubbled up
This commit is contained in:
parent
00ffe10b05
commit
ac08f53d14
|
|
@ -2389,10 +2389,10 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
} else {
|
||||
if (cmd.isAttach()) {
|
||||
vmMo.mountToolsInstaller();
|
||||
} else {
|
||||
} else {
|
||||
vmMo.unmountToolsInstaller();
|
||||
}
|
||||
|
||||
|
||||
return new Answer(cmd);
|
||||
}
|
||||
}
|
||||
|
|
@ -2434,8 +2434,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
} else {
|
||||
String msg = "AttachIsoCommand(detach) failed due to " + VmwareHelper.getExceptionMessage(e);
|
||||
s_logger.warn(msg, e);
|
||||
s_logger.warn("For detachment failure, we will eventually continue on to allow deassociating it from CloudStack DB");
|
||||
return new Answer(cmd);
|
||||
return new Answer(cmd, false, msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue