Merge pull request #599 from JoshRosen/spark-670

Fix SPARK-670: EC2 'start' command should require -i option.
This commit is contained in:
Reynold Xin 2013-05-08 22:30:31 -07:00
commit 42bbe89f04

View file

@ -103,7 +103,7 @@ def parse_args():
parser.print_help()
sys.exit(1)
(action, cluster_name) = args
if opts.identity_file == None and action in ['launch', 'login']:
if opts.identity_file == None and action in ['launch', 'login', 'start']:
print >> stderr, ("ERROR: The -i or --identity-file argument is " +
"required for " + action)
sys.exit(1)