Repository: spark Updated Branches: refs/heads/branch-1.0 ec0bce10d -> 7305278a0
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 <[email protected]> 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 (cherry picked from commit bcb9b7fd4a656f9a6741220a6623441567ded0a4) Signed-off-by: Patrick Wendell <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7305278a Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7305278a Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7305278a Branch: refs/heads/branch-1.0 Commit: 7305278a0e2a376320154f68f7c0b6876c65916a Parents: ec0bce1 Author: Allan Douglas R. de Oliveira <[email protected]> Authored: Sun May 4 20:36:51 2014 -0700 Committer: Patrick Wendell <[email protected]> Committed: Sun May 4 20:37:04 2014 -0700 ---------------------------------------------------------------------- ec2/spark_ec2.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/7305278a/ec2/spark_ec2.py ---------------------------------------------------------------------- diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index 6d6335f..d2def7a 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -815,6 +815,7 @@ def main(): real_main() except UsageError, e: print >> stderr, "\nError:\n", e + sys.exit(1) if __name__ == "__main__":
