Skip to content

Instantly share code, notes, and snippets.

@abayer
Created August 17, 2012 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abayer/3381325 to your computer and use it in GitHub Desktop.
Save abayer/3381325 to your computer and use it in GitHub Desktop.
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