summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-04-13 15:00:00 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-04-13 15:00:00 +0000
commit82d8aeb37212e1202f3dfe41b50592a026822318 (patch)
tree357893ed4c69f2ce439e51db69ab77163e0a0a1e /src/lib/Client
parent4bcf8892890663a561fe9949da20b8f53db3ca6a (diff)
downloadbcfg2-82d8aeb37212e1202f3dfe41b50592a026822318.tar.gz
bcfg2-82d8aeb37212e1202f3dfe41b50592a026822318.tar.bz2
bcfg2-82d8aeb37212e1202f3dfe41b50592a026822318.zip
Fix YUMng -r behavior
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5159 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-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 71d2bf071..23ec4fb8d 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -344,7 +344,7 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
if inst.haskey('epoch'):
pkg_arg = pkg_arg + inst.get('epoch') + ':'
pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release')
- if inst.haskey('arch'):
+ if 'arch' in inst.attrib:
pkg_arg = pkg_arg + '.' + inst.get('arch')
else:
self.logger.info("WARNING: gpg-pubkey package not in configuration %s %s"\