AsyncJob reports 'Successful' even if RevertToVMSnapshot operation fails.

This closes #484
This commit is contained in:
Sanjay Tripathi 2015-06-19 15:46:07 +05:30
parent bcfb8240e1
commit 92a9ee097d
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ public class VMSnapshotManagerImpl extends ManagerBase implements VMSnapshotMana
return userVm;
} catch (Exception e) {
s_logger.debug("Failed to revert vmsnapshot: " + vmSnapshotId, e);
return null;
throw new CloudRuntimeException(e.getMessage());
}
}