summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-21 08:53:09 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-21 08:53:09 -0500
commit673c947a552ab601b159e7a95e3506870d837328 (patch)
treede8d3b188947ae1e62e9308c9fb4997ff2300faf
parentc9e234dc15b527c930bbb5a1e7e0e7d9212168b1 (diff)
downloadbcfg2-673c947a552ab601b159e7a95e3506870d837328.tar.gz
bcfg2-673c947a552ab601b159e7a95e3506870d837328.tar.bz2
bcfg2-673c947a552ab601b159e7a95e3506870d837328.zip
Yum: fix pylint tests
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index 71c6d003c..a149ccfe2 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -354,8 +354,8 @@ class YumCollection(Collection):
a call to it; I wish there was a way to do this without
forking, but apparently not); finally we check in /usr/sbin,
the default location. """
+ # pylint: disable=W0212
if not self.__class___helper:
- # pylint: disable=W0212
try:
self.__class__._helper = self.setup.cfp.get("packages:yum",
"helper")
@@ -367,8 +367,8 @@ class YumCollection(Collection):
self.__class__._helper = 'bcfg2-yum-helper'
except OSError:
self.__class__._helper = "/usr/sbin/bcfg2-yum-helper"
- # pylint: enable=W0212
return self.__class__._helper
+ # pylint: enable=W0212
@property
def use_yum(self):