We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62ad6c4 commit da53ef1Copy full SHA for da53ef1
1 file changed
server/src/com/cloud/api/ApiServer.java
@@ -208,7 +208,7 @@ public void init() {
208
String strSnapshotLimit = configs.get(Config.ConcurrentSnapshotsThresholdPerHost.key());
209
if (strSnapshotLimit != null) {
210
Long snapshotLimit = NumbersUtil.parseLong(strSnapshotLimit, 1L);
211
- if (snapshotLimit <= 0) {
+ if (snapshotLimit.longValue() <= 0) {
212
s_logger.debug("Global config parameter " + Config.ConcurrentSnapshotsThresholdPerHost.toString()
213
+ " is less or equal 0; defaulting to unlimited");
214
} else {
0 commit comments