summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-09-28 09:04:41 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-09-28 09:04:41 +0000
commit01f103ce62342831afb5efc9f9e4bc07c1c06b15 (patch)
tree2f38328dfdce3d2b32b79d850b5525562a96fe2d
parentf69841e038ec81a98f6b3bf870b7ee4ad0e4a5af (diff)
downloadbcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.tar.gz
bcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.tar.bz2
bcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.zip
YUMng: Fix bulk package removal backtrace (Resolves Ticket #749)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5467 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/YUMng.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 3adcce742..4c295de62 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -338,7 +338,7 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
for inst in pkg:
if pkg.get('name') != 'gpg-pubkey':
pkg_arg = pkg.get('name') + '-'
- if inst.haskey('epoch'):
+ if inst.attrib.has_key('epoch'):
pkg_arg = pkg_arg + inst.get('epoch') + ':'
pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release')
if 'arch' in inst.attrib: