summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-03 10:57:00 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-06-03 10:57:00 -0400
commit7175d64e3b4c150340bb71363e5a25faac80e21e (patch)
tree0cbf0d8c0eea192de5a315f7cca65836ad83bf29 /src/sbin
parent4e4b33d9ecc869447e82b45972eb170ce78d75ea (diff)
downloadbcfg2-7175d64e3b4c150340bb71363e5a25faac80e21e.tar.gz
bcfg2-7175d64e3b4c150340bb71363e5a25faac80e21e.tar.bz2
bcfg2-7175d64e3b4c150340bb71363e5a25faac80e21e.zip
bcfg2-admin: set appropriate return values on error
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-admin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 31e49c00b..14d188342 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -83,7 +83,7 @@ def main():
raise SystemExit(1)
mode = mode_cls(setup)
try:
- mode(setup['args'][1:])
+ return mode(setup['args'][1:])
finally:
mode.shutdown()
else:
@@ -93,6 +93,6 @@ def main():
if __name__ == '__main__':
try:
- main()
+ sys.exit(main())
except KeyboardInterrupt:
raise SystemExit(1)