From 673c947a552ab601b159e7a95e3506870d837328 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 21 Feb 2014 08:53:09 -0500 Subject: Yum: fix pylint tests --- src/lib/Bcfg2/Server/Plugins/Packages/Yum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2') 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): -- cgit v1.2.3-1-g7c22