Created
August 17, 2012 18:21
-
-
Save abayer/3381305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/src/main/java/org/apache/whirr/ClusterSpec.java b/core/src/main/java/org/apache/whirr/ClusterSpec.java | |
index 594220e..503a479 100644 | |
--- a/core/src/main/java/org/apache/whirr/ClusterSpec.java | |
+++ b/core/src/main/java/org/apache/whirr/ClusterSpec.java | |
@@ -482,7 +482,7 @@ public class ClusterSpec { | |
} | |
private float getFloat(Property key, float defaultValue) { | |
- return config.getFloat(key.getConfigName(), defaultValue); | |
+ return config.getFloat(key.getConfigName(), defaultValue > 0 ? defaultValue : null); | |
} | |
private List<String> getList(Property key) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment