Skip to content
Browse files

Missed sdb endpoint in administration.py

  • Loading branch information...
1 parent 51105d8 commit 4dd1e0aaf25d43400964667fd5ff6fd3773673b2 @numan numan committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 administration.py
View
6 administration.py
@@ -33,7 +33,11 @@
except:
exit("We should be getting user-data here...")
-region_info = RegionInfo(name=region,endpoint="sdb.{0}.amazonaws.com".format(region))
+#us-east-1 breaks the convention. See http://docs.amazonwebservices.com/general/latest/gr/rande.html#sdb_region
+endpoint = "sdb.{0}.amazonaws.com".format(region) if region != "us-east-1" \
+ else "sdb.amazonaws.com"
+
+region_info = RegionInfo(name=region, endpoint=endpoint)
def set_cluster_metadata(key, access, cluster):
sdb = SDBConnection(key, access, region=region_info)

0 comments on commit 4dd1e0a

Please sign in to comment.
Something went wrong with that request. Please try again.