Rethrow takeVMSnapshot() exception instead of returning null in VMSnapshotManagerImpl (#3761)

Fixes: #3518
This commit is contained in:
Gregor Riepl 2020-01-28 06:35:15 +01:00 committed by Rohit Yadav
parent a77d74ba0d
commit 8792070f84

View File

@ -515,7 +515,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme
return snapshot;
} catch (Exception e) {
s_logger.debug("Failed to create vm snapshot: " + vmSnapshotId, e);
return null;
throw new CloudRuntimeException("Failed to create vm snapshot: " + vmSnapshotId, e);
}
}