diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-21 08:53:09 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-21 08:53:09 -0500 |
commit | 673c947a552ab601b159e7a95e3506870d837328 (patch) | |
tree | de8d3b188947ae1e62e9308c9fb4997ff2300faf /src | |
parent | c9e234dc15b527c930bbb5a1e7e0e7d9212168b1 (diff) | |
download | bcfg2-673c947a552ab601b159e7a95e3506870d837328.tar.gz bcfg2-673c947a552ab601b159e7a95e3506870d837328.tar.bz2 bcfg2-673c947a552ab601b159e7a95e3506870d837328.zip |
Yum: fix pylint tests
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Yum.py | 4 |
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): |