Skip to content

Instantly share code, notes, and snippets.

@AlexanderS
Created September 28, 2016 14:49
Show Gist options
  • Save AlexanderS/6abb304e3bfbe870a275611d08758ec6 to your computer and use it in GitHub Desktop.
Save AlexanderS/6abb304e3bfbe870a275611d08758ec6 to your computer and use it in GitHub Desktop.
diff --git a/src/lib/Bcfg2/Options/Parser.py b/src/lib/Bcfg2/Options/Parser.py
index b72a495..dd5087f 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment