summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Options
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-16 10:56:02 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-16 10:56:02 -0400
commit32f810ae165c05e99cf1a8530e40f4da7eb2697f (patch)
tree2f34ec8200742c2bfb4891c2061d714a775a7d1c /src/lib/Bcfg2/Options
parent38f3cfcfdbf36bca3b048cc87e6d11e0c883673b (diff)
downloadbcfg2-32f810ae165c05e99cf1a8530e40f4da7eb2697f.tar.gz
bcfg2-32f810ae165c05e99cf1a8530e40f4da7eb2697f.tar.bz2
bcfg2-32f810ae165c05e99cf1a8530e40f4da7eb2697f.zip
Options: fixed error message when bcfg2.conf is not readable
Diffstat (limited to 'src/lib/Bcfg2/Options')
-rw-r--r--src/lib/Bcfg2/Options/Parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Options/Parser.py b/src/lib/Bcfg2/Options/Parser.py
index 8b56548a9..f72671edf 100644
--- a/src/lib/Bcfg2/Options/Parser.py
+++ b/src/lib/Bcfg2/Options/Parser.py
@@ -201,8 +201,7 @@ class Parser(argparse.ArgumentParser):
# check whether the specified bcfg2.conf exists
if not os.path.exists(bootstrap.config):
- print("Could not read %s" % bootstrap.config)
- return 1
+ self.error("Could not read %s" % bootstrap.config)
self.add_config_file(self.configfile.dest, bootstrap.config)
# phase 2: re-parse command line, loading additional