Skip to content
Snippets Groups Projects
Commit 78d4220f authored by Vida Ha's avatar Vida Ha Committed by Reynold Xin
Browse files

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
parent 8af23706
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment