diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-16 10:56:02 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-16 10:56:02 -0400 |
commit | 32f810ae165c05e99cf1a8530e40f4da7eb2697f (patch) | |
tree | 2f34ec8200742c2bfb4891c2061d714a775a7d1c /src/lib/Bcfg2/Options/Parser.py | |
parent | 38f3cfcfdbf36bca3b048cc87e6d11e0c883673b (diff) | |
download | bcfg2-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/Parser.py')
-rw-r--r-- | src/lib/Bcfg2/Options/Parser.py | 3 |
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 |