Commit ed9a7f37 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

snf-deploy: Return the correct exit code

snf-deploy uses os.system to execute it's fabfile. We have
to use sys.exit() for the python script to return with the
same exit code as the one returned by fabric script.
parent e4184e58
...@@ -284,7 +284,7 @@ autoconf={5},disable_colors={6},key_inject={7} \ ...@@ -284,7 +284,7 @@ autoconf={5},disable_colors={6},key_inject={7} \
print(fabcmd) print(fabcmd)
if not args.dry_run: if not args.dry_run:
os.system(fabcmd) sys.exit(os.system(fabcmd))
def cluster(args, env): def cluster(args, env):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment