Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow user to login into a cluster without slaves

  • Loading branch information...
commit 24a7c79a64b0b76ff0962c322f610420df3a30c6 1 parent 3a8b698
@CodingCat CodingCat authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 ec2/spark_ec2.py
View
4 ec2/spark_ec2.py
@@ -398,13 +398,11 @@ def get_existing_cluster(conn, opts, cluster_name, die_on_error=True):
if any((master_nodes, slave_nodes)):
print ("Found %d master(s), %d slaves" %
(len(master_nodes), len(slave_nodes)))
- if (master_nodes != [] and slave_nodes != []) or not die_on_error:
+ if master_nodes != [] or not die_on_error:
return (master_nodes, slave_nodes)
else:
if master_nodes == [] and slave_nodes != []:
print "ERROR: Could not find master in group " + cluster_name + "-master"
- elif master_nodes != [] and slave_nodes == []:
- print "ERROR: Could not find slaves in group " + cluster_name + "-slaves"
else:
print "ERROR: Could not find any existing cluster"
sys.exit(1)
Please sign in to comment.
Something went wrong with that request. Please try again.