diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-04-28 17:37:25 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-04-29 11:31:21 -0500 |
commit | 8e7eceeed4add8f98222036a3f8bd00c4d9691dc (patch) | |
tree | 92779c7722b552c6651f02d1f72056ec521fe84e /src/lib/Client/Tools/YUMng.py | |
parent | 65115b11dc4a724cdcacd6362d0466482e214251 (diff) | |
download | bcfg2-8e7eceeed4add8f98222036a3f8bd00c4d9691dc.tar.gz bcfg2-8e7eceeed4add8f98222036a3f8bd00c4d9691dc.tar.bz2 bcfg2-8e7eceeed4add8f98222036a3f8bd00c4d9691dc.zip |
YUMng: Fix list comprehension traceback (Reported by Jonathan Billings) [bugfix]
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5844 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/YUMng.py')
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index 0b811a75a..b4e8a2c4e 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -73,9 +73,9 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng): def __init__(self, logger, setup, config): Bcfg2.Client.Tools.RPMng.RPMng.__init__(self, logger, setup, config) - self.__important__ = [e.get('name') for struct in config for entry in struct \ + self.__important__ = [entry.get('name') for struct in config for entry in struct \ if entry.tag in ['Path', 'ConfigFile'] and \ - e.get('name').startswith('/etc/yum.d') or e.get('name') == '/etc/yum.conf'] + entry.get('name').startswith('/etc/yum.d') or entry.get('name') == '/etc/yum.conf'] self.yum_avail = dict() self.yum_installed = dict() self.yb = yum.YumBase() |