spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject git commit: SPARK-3608 Break if the instance tag naming succeeds
Date Sat, 20 Sep 2014 08:24:52 GMT
Repository: spark
Updated Branches:
  refs/heads/master 8af237061 -> 78d4220fa


SPARK-3608 Break if the instance tag naming succeeds

Author: Vida Ha <vida@databricks.com>

Closes #2466 from vidaha/vida/spark-3608 and squashes the following commits:

9509776 [Vida Ha] Break if the instance tag naming succeeds


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/78d4220f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/78d4220f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/78d4220f

Branch: refs/heads/master
Commit: 78d4220fa0bf2f9ee663e34bbf3544a5313b02f0
Parents: 8af2370
Author: Vida Ha <vida@databricks.com>
Authored: Sat Sep 20 01:24:49 2014 -0700
Committer: Reynold Xin <rxin@apache.org>
Committed: Sat Sep 20 01:24:49 2014 -0700

----------------------------------------------------------------------
 ec2/spark_ec2.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/78d4220f/ec2/spark_ec2.py
----------------------------------------------------------------------
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index abac71e..fbeccd8 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -505,6 +505,7 @@ def tag_instance(instance, name):
     for i in range(0, 5):
         try:
             instance.add_tag(key='Name', value=name)
+            break
         except:
             print "Failed attempt %i of 5 to tag %s" % ((i + 1), name)
             if (i == 5):


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message