CLOUDSTACK-7950: AttachIsoCmd shoud give correct messge when trying to attach vmwaretools installer iso on non supported guestvm deployed by ISO

This commit is contained in:
Saksham Srivastava 2014-11-18 15:16:37 +05:30
parent 3dfe532e42
commit 4ff3130bec
1 changed files with 2 additions and 0 deletions

View File

@ -1463,10 +1463,12 @@ public class VmwareStorageProcessor implements StorageProcessor {
if (isAttach) {
String msg = "AttachIsoCommand(attach) failed due to " + VmwareHelper.getExceptionMessage(e);
msg = msg + " Also check if your guest os is a supported version";
s_logger.error(msg, e);
return new AttachAnswer(msg);
} else {
String msg = "AttachIsoCommand(detach) failed due to " + VmwareHelper.getExceptionMessage(e);
msg = msg + " Also check if your guest os is a supported version";
s_logger.warn(msg, e);
return new AttachAnswer(msg);
}