Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Exit with nonzero when ansible-playbook fails. (#72)
Browse files Browse the repository at this point in the history
Good find @JaryN
  • Loading branch information
Jaroslav Henner authored and cooktheryan committed Oct 24, 2016
1 parent 96a18ba commit 3fdfa7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reference-architecture/aws-ansible/ose-on-aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def launch_refarch_env(region=None,

status = os.system(command)
if os.WIFEXITED(status) and os.WEXITSTATUS(status) != 0:
return os.WEXITSTATUS(status)
sys.exit(os.WEXITSTATUS(status))


if __name__ == '__main__':
# check for AWS access info
Expand Down

0 comments on commit 3fdfa7f

Please sign in to comment.