You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"VM Snapshot expire interval in hours", true, ConfigKey.Scope.Account);
33
33
34
-
ConfigKey<Integer> VMSnapshotMax = newConfigKey<Integer>("Advanced", Integer.class, "vmsnapshot.max", "10", "Maximum vm snapshots for a single vm", true, ConfigKey.Scope.Global);
34
+
ConfigKey<Integer> VMSnapshotMax = newConfigKey<Integer>("Advanced", Integer.class, "vmsnapshot.max", "10", "Maximum VM snapshots for a single VM", true, ConfigKey.Scope.Account);
if (_vmSnapshotDao.findByVm(vmId).size() >= vmSnapshotMax) {
417
-
thrownewCloudRuntimeException("Creating Instance Snapshot failed due to a Instance can just have : " + vmSnapshotMax + " Instance Snapshots. Please delete old ones");
418
+
thrownewCloudRuntimeException(String.format("Each VM can have at most [%s] VM snapshots.", vmSnapshotMax));
418
419
}
419
420
420
421
// check if there are active volume snapshots tasks
0 commit comments