diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-20 11:40:28 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-20 11:40:28 -0400 |
commit | e84d86449811cf4278aeaf9c7ba46e78d12decfe (patch) | |
tree | 9cbfc554e112f60b420de27b256231768dbe86ae | |
parent | 31936e57eb6587dbf75c5f1ef68d952986368829 (diff) | |
download | bcfg2-e84d86449811cf4278aeaf9c7ba46e78d12decfe.tar.gz bcfg2-e84d86449811cf4278aeaf9c7ba46e78d12decfe.tar.bz2 bcfg2-e84d86449811cf4278aeaf9c7ba46e78d12decfe.zip |
short-circuit Pkgmgr lint checks if Pkgmgr plugin not enabled
-rw-r--r-- | src/lib/Server/Lint/Pkgmgr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Lint/Pkgmgr.py b/src/lib/Server/Lint/Pkgmgr.py index 28ca698bd..f2eb2a5f6 100644 --- a/src/lib/Server/Lint/Pkgmgr.py +++ b/src/lib/Server/Lint/Pkgmgr.py @@ -5,6 +5,10 @@ class Pkgmgr(Bcfg2.Server.Lint.ServerPlugin): @Bcfg2.Server.Lint.returnErrors def Run(self): + if 'Pkgmgr' not in self.core.plugins: + self.LintWarning("Pkgmgr server plugin is not enabled, skipping Pkgmgr lint checks") + return + pset = set() for plist in self.core.plugins['Pkgmgr'].entries.values(): if self.HandlesFile(plist.name): |