[rhel7-branch] CmdlineError should exit with a 1
Brian C. Lane
bcl at redhat.com
Thu Aug 28 18:42:40 UTC 2014
Tools like livemedia-creator need to know that the exit was due to an
error so call sys.exit with a 1.
Related: rhbz#1102318
---
pyanaconda/exception.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 7a8941e..a59cf66 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -136,7 +136,7 @@ class AnacondaExceptionHandler(ExceptionHandler):
# for a few seconds before exiting the installer
print(cmdline_error_msg)
time.sleep(180)
- sys.exit()
+ sys.exit(1)
else:
print "An unknown error has occured, look at the "\
"/tmp/anaconda-tb* file(s) for more details"
--
1.9.3
More information about the anaconda-patches
mailing list