Skip to content

Commit

Permalink
broke up lines before they hit 100 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
nchammas committed Jun 11, 2014
1 parent 6544b7e commit 2627247
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,13 @@ def launch_cluster(conn, opts, cluster_name):

# Give the instances descriptive names
for master in master_nodes:
master.add_tag(key='Name', value='spark-{cn}-master-{iid}'.format(cn=cluster_name, iid=master.id))
master.add_tag(
key='Name',
value='spark-{cn}-master-{iid}'.format(cn=cluster_name, iid=master.id))
for slave in slave_nodes:
slave.add_tag(key='Name', value='spark-{cn}-slave-{iid}'.format(cn=cluster_name, iid=slave.id))
slave.add_tag(
key='Name',
value='spark-{cn}-slave-{iid}'.format(cn=cluster_name, iid=slave.id))

# Return all the instances
return (master_nodes, slave_nodes)
Expand Down

0 comments on commit 2627247

Please sign in to comment.