From 2fe3015d986bc27bfd230d447ff9ba1c7cb946ce Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 28 Sep 2016 17:04:12 +0200 Subject: 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. --- src/lib/Bcfg2/Options/Parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Options') 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) -- cgit v1.2.3-1-g7c22