summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-01-23 21:13:40 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-03-05 13:37:29 -0500
commita38f0fa202211148c2237334ef61d0e812b11d93 (patch)
tree7179b8b79a28397c5893d7958a96c22ca17cf9b5 /src
parent713ae6ed84a4ec8b62e6a160fc99cf44f493e241 (diff)
downloadbcfg2-a38f0fa202211148c2237334ef61d0e812b11d93.tar.gz
bcfg2-a38f0fa202211148c2237334ef61d0e812b11d93.tar.bz2
bcfg2-a38f0fa202211148c2237334ef61d0e812b11d93.zip
Options: fail_silently really fails silently when loading components
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Options/Actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Options/Actions.py b/src/lib/Bcfg2/Options/Actions.py
index 8b97f1da8..3ebe75b5f 100644
--- a/src/lib/Bcfg2/Options/Actions.py
+++ b/src/lib/Bcfg2/Options/Actions.py
@@ -123,7 +123,7 @@ class ComponentAction(argparse.Action):
break
if cls:
get_parser().add_component(cls)
- else:
+ elif not self.fail_silently:
print("Could not load component %s" % name)
return cls