usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [02/50] [abbrv] git commit: Fixes bug with us region naming
Date Mon, 20 Oct 2014 13:46:30 GMT
Fixes bug with us region naming


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/c9ac3e27
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c9ac3e27
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c9ac3e27

Branch: refs/heads/two-dot-o-events
Commit: c9ac3e27a9b47dd47d411b54d931a95b02f79bed
Parents: b84bbc1
Author: Todd Nine <toddnine@apache.org>
Authored: Wed Oct 15 22:07:34 2014 -0600
Committer: Todd Nine <toddnine@apache.org>
Committed: Wed Oct 15 22:07:34 2014 -0600

----------------------------------------------------------------------
 stack/awscluster/src/main/groovy/configure_usergrid.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c9ac3e27/stack/awscluster/src/main/groovy/configure_usergrid.groovy
----------------------------------------------------------------------
diff --git a/stack/awscluster/src/main/groovy/configure_usergrid.groovy b/stack/awscluster/src/main/groovy/configure_usergrid.groovy
index 03b3077..35a0262 100644
--- a/stack/awscluster/src/main/groovy/configure_usergrid.groovy
+++ b/stack/awscluster/src/main/groovy/configure_usergrid.groovy
@@ -43,7 +43,8 @@ def testAdminUserEmail = System.getenv().get("TEST_ADMIN_USER_EMAIL")
 def cassThreads = System.getenv().get("TOMCAT_THREADS")
 def hystrixThreads = Integer.parseInt(cassThreads) / 100
 
-def ec2Region = System.getenv().get("EC2_REGION")
+//if we end in -1, we remove it
+def ec2Region = System.getenv().get("EC2_REGION").replace("-1", "")
 
 
 NodeRegistry registry = new NodeRegistry();


Mime
View raw message