summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-31 09:11:08 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-07-31 09:11:08 -0400
commit7c274b35552e631d7b5359b13192e7463eace645 (patch)
tree853deabdc6912f4e9006e99cb51044819f03f021 /src/lib/Bcfg2/Server/Plugins
parent2a93140e6f9ea5679e4cf8241c193f31bcb87f9b (diff)
downloadbcfg2-7c274b35552e631d7b5359b13192e7463eace645.tar.gz
bcfg2-7c274b35552e631d7b5359b13192e7463eace645.tar.bz2
bcfg2-7c274b35552e631d7b5359b13192e7463eace645.zip
Yum: record helper location in class variable so it's only detected once
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index 48c5b1f65..9ec7ac122 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -262,6 +262,8 @@ class YumCollection(Collection):
.. private-include: _add_gpg_instances, _get_pulp_consumer
"""
+ _helper = None
+
#: Options that are included in the [packages:yum] section of the
#: config but that should not be included in the temporary
#: yum.conf we write out
@@ -280,7 +282,6 @@ class YumCollection(Collection):
#: external commands
self.cmd = Executor()
- self._helper = None
if self.use_yum:
#: Define a unique cache file for this collection to use
#: for cached yum metadata