summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-04-25 08:46:59 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-04-25 08:46:59 -0400
commit148239de876a0c8d2fb53fd644ffaabc70540370 (patch)
tree07210e4910f4405fe23dbdf8ca91411c7f19d71f /src/sbin
parent14c6cfde0761e910b6c3c1924d51cf915ba96e9d (diff)
downloadbcfg2-148239de876a0c8d2fb53fd644ffaabc70540370.tar.gz
bcfg2-148239de876a0c8d2fb53fd644ffaabc70540370.tar.bz2
bcfg2-148239de876a0c8d2fb53fd644ffaabc70540370.zip
fixed pylint/pep-8 tests
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. """