summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-09-28 17:04:12 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-09-28 17:04:12 +0200
commit2fe3015d986bc27bfd230d447ff9ba1c7cb946ce (patch)
tree769d44d57870a827413ce7d5524b25444def426a
parenta24fd9e6966e70014ea776ac266350f902833b1e (diff)
downloadbcfg2-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.
-rw-r--r--src/lib/Bcfg2/Options/Parser.py2
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)