bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony

This commit is contained in:
Kelven Yang 2012-02-15 16:18:25 -08:00
parent e89eec45b6
commit 492e835ba5
1 changed files with 3 additions and 0 deletions

View File

@ -1254,6 +1254,8 @@ public class VirtualMachineMO extends BaseMO {
String result = command.execute();
if(result == null) {
success = true;
} else {
s_logger.error("failed to execute command: " + command.toString());
}
}
}
@ -1270,6 +1272,7 @@ public class VirtualMachineMO extends BaseMO {
if(!success) {
new File(exportDir + File.separator + exportName + ".ova").delete();
throw new Exception("Unable to finish the whole process to package as a OVA file");
}
}
}