summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-21 08:39:18 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-21 08:39:18 -0500
commitc9e234dc15b527c930bbb5a1e7e0e7d9212168b1 (patch)
tree481ee0bcec53d9a67775521e021ce6432dd3b3d2
parentcae2fcc0135c26811b1ce353ea28e4a93900c138 (diff)
downloadbcfg2-c9e234dc15b527c930bbb5a1e7e0e7d9212168b1.tar.gz
bcfg2-c9e234dc15b527c930bbb5a1e7e0e7d9212168b1.tar.bz2
bcfg2-c9e234dc15b527c930bbb5a1e7e0e7d9212168b1.zip
Yum: only fork to find bcfg2-yum-helper once, for real
-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 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):