diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-28 17:04:12 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-28 17:04:12 +0200 |
commit | 2fe3015d986bc27bfd230d447ff9ba1c7cb946ce (patch) | |
tree | 769d44d57870a827413ce7d5524b25444def426a /src | |
parent | a24fd9e6966e70014ea776ac266350f902833b1e (diff) | |
download | bcfg2-2fe3015d986bc27bfd230d447ff9ba1c7cb946ce.tar.gz bcfg2-2fe3015d986bc27bfd230d447ff9ba1c7cb946ce.tar.bz2 bcfg2-2fe3015d986bc27bfd230d447ff9ba1c7cb946ce.zip |
Options: Missing config file is not a fatal error
If the config file is not available, it should not be a fatal error,
but bcfg2 should just use the default config values.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Options/Parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Options/Parser.py b/src/lib/Bcfg2/Options/Parser.py index b72a495f1..dd5087f33 100644 --- a/src/lib/Bcfg2/Options/Parser.py +++ b/src/lib/Bcfg2/Options/Parser.py @@ -302,7 +302,7 @@ class Parser(argparse.ArgumentParser): # check whether the specified bcfg2.conf exists if not self.unit_test and not os.path.exists(bootstrap.config): - self.error("Could not read %s" % bootstrap.config) + sys.stderr.write("Could not read %s\n" % bootstrap.config) self.add_config_file(self.configfile.dest, bootstrap.config, reparse=False) |