Created
August 17, 2012 18:24
-
-
Save abayer/3381325 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..e652646 100644 | |
--- a/core/src/main/java/org/apache/whirr/ClusterSpec.java | |
+++ b/core/src/main/java/org/apache/whirr/ClusterSpec.java | |
@@ -355,7 +355,7 @@ public class ClusterSpec { | |
setStateStoreContainer(getString(Property.STATE_STORE_CONTAINER)); | |
setStateStoreBlob(getString(Property.STATE_STORE_BLOB)); | |
- setAwsEc2SpotPrice(getFloat(Property.AWS_EC2_SPOT_PRICE, -1)); | |
+ setAwsEc2SpotPrice(getFloat(Property.AWS_EC2_SPOT_PRICE, null)); | |
checkAndSetKeyPair(); | |
@@ -481,7 +481,7 @@ public class ClusterSpec { | |
return config.getInt(key.getConfigName(), defaultValue); | |
} | |
- private float getFloat(Property key, float defaultValue) { | |
+ private Float getFloat(Property key, Float defaultValue) { | |
return config.getFloat(key.getConfigName(), defaultValue); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment