From c9e234dc15b527c930bbb5a1e7e0e7d9212168b1 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 21 Feb 2014 08:39:18 -0500 Subject: Yum: only fork to find bcfg2-yum-helper once, for real --- src/lib/Bcfg2/Server/Plugins/Packages/Yum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py index 7b5475ecc..71c6d003c 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py @@ -354,7 +354,7 @@ 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. """ - if not self._helper: + if not self.__class___helper: # pylint: disable=W0212 try: self.__class__._helper = self.setup.cfp.get("packages:yum", @@ -368,7 +368,7 @@ class YumCollection(Collection): except OSError: self.__class__._helper = "/usr/sbin/bcfg2-yum-helper" # pylint: enable=W0212 - return self._helper + return self.__class__._helper @property def use_yum(self): -- cgit v1.2.3-1-g7c22