You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/05/05 05:37:03 UTC

git commit: EC2 script should exit with non-zero code on UsageError

Repository: spark
Updated Branches:
  refs/heads/master d940e4c16 -> bcb9b7fd4


EC2 script should exit with non-zero code on UsageError

This is specially import because some ssh errors are raised as UsageError, preventing an automated usage of the script from detecting the failure.

Author: Allan Douglas R. de Oliveira <al...@chaordicsystems.com>

Closes #638 from douglaz/ec2_exit_code_fix and squashes the following commits:

5915e6d [Allan Douglas R. de Oliveira] EC2 script should exit with non-zero code on UsageError


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

Branch: refs/heads/master
Commit: bcb9b7fd4a656f9a6741220a6623441567ded0a4
Parents: d940e4c
Author: Allan Douglas R. de Oliveira <al...@chaordicsystems.com>
Authored: Sun May 4 20:36:51 2014 -0700
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Sun May 4 20:36:51 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/bcb9b7fd/ec2/spark_ec2.py
----------------------------------------------------------------------
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index db39374..0f6d5a1 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -814,6 +814,7 @@ def main():
     real_main()
   except UsageError, e:
     print >> stderr, "\nError:\n", e
+    sys.exit(1)
 
 
 if __name__ == "__main__":