summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-info3
-rwxr-xr-xsrc/sbin/bcfg2-lint4
-rwxr-xr-xsrc/sbin/bcfg2-yum-helper1
3 files changed, 3 insertions, 5 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 6008f8896..a6c3149bc 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -438,8 +438,7 @@ Bcfg2 client itself.""")
automatch = self.setup.cfp.getboolean("properties", "automatch",
default=False)
pfile = self.plugins['Properties'].entries[pname]
- if (not force and
- not automatch and
+ if (not force and not automatch and
pfile.xdata.get("automatch", "false").lower() != "true"):
print("Automatch not enabled on %s" % pname)
else:
diff --git a/src/sbin/bcfg2-lint b/src/sbin/bcfg2-lint
index 9ceb1dd04..bb96c2023 100755
--- a/src/sbin/bcfg2-lint
+++ b/src/sbin/bcfg2-lint
@@ -4,7 +4,6 @@
import sys
import time
-import inspect
import logging
import Bcfg2.Logger
import Bcfg2.Options
@@ -136,8 +135,7 @@ def load_plugins(setup):
serverplugins = dict()
serverlessplugins = dict()
for plugin_name, plugin in allplugins.items():
- if [c for c in inspect.getmro(plugin)
- if c == Bcfg2.Server.Lint.ServerPlugin]:
+ if issubclass(plugin, Bcfg2.Server.Lint.ServerPlugin):
serverplugins[plugin_name] = plugin
else:
serverlessplugins[plugin_name] = plugin
diff --git a/src/sbin/bcfg2-yum-helper b/src/sbin/bcfg2-yum-helper
index dc6a6cc0b..f2bdf2c97 100755
--- a/src/sbin/bcfg2-yum-helper
+++ b/src/sbin/bcfg2-yum-helper
@@ -67,6 +67,7 @@ class YumHelper(object):
resolution. """
self.yumbase.arch.setup_arch(arch=arch)
+
class DepSolver(YumHelper):
""" Yum dependency solver. This is used for operations that only
read from the yum cache, and thus operates in cacheonly mode. """