summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-09-09 13:25:44 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-09-09 13:25:49 -0400
commite2909bd2259244a6f3c17f2feed71d11426a0fb8 (patch)
tree73968c49c3e297d98b9b7b6c290d14539bacfbb4 /src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
parentefa412b4dda4048b1a49143df5521eb1f7e8573f (diff)
downloadbcfg2-e2909bd2259244a6f3c17f2feed71d11426a0fb8.tar.gz
bcfg2-e2909bd2259244a6f3c17f2feed71d11426a0fb8.tar.bz2
bcfg2-e2909bd2259244a6f3c17f2feed71d11426a0fb8.zip
Cfg: Give non-specific handlers a default specificity
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
index 7f271fc7f..89db45e2c 100644
--- a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
+++ b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
@@ -101,6 +101,8 @@ class CfgBaseFileMatcher(Bcfg2.Server.Plugin.SpecificData,
experimental = False
def __init__(self, name, specific, encoding):
+ if not self.__specific__ and not specific:
+ specific = Bcfg2.Server.Plugin.Specificity(all=True)
Bcfg2.Server.Plugin.SpecificData.__init__(self, name, specific,
encoding)
Bcfg2.Server.Plugin.Debuggable.__init__(self)