summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-29 23:41:52 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-29 23:41:52 +0000
commitc7db9500b42648e6172f333bd1c23c70f3b2fb63 (patch)
tree72b13d7f29927fe1d80598e5515687eb301cb624 /src
parent71c8541212bd683c1f1cb03366c6cde315e44d2a (diff)
downloadbcfg2-c7db9500b42648e6172f333bd1c23c70f3b2fb63.tar.gz
bcfg2-c7db9500b42648e6172f333bd1c23c70f3b2fb63.tar.bz2
bcfg2-c7db9500b42648e6172f333bd1c23c70f3b2fb63.zip
YUMng: skip unbound gpg key packages
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5393 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/YUMng.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 062f28c94..a126efdc6 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -174,6 +174,9 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
if len(gpg_keys) > 0:
for inst in gpg_keys:
self.logger.info("Installing GPG keys.")
+ if inst.get('simplefile') is None:
+ self.logger.error("GPG key has no simplefile attribute")
+ continue
key_arg = os.path.join(self.instance_status[inst].get('pkg').get('uri'), \
inst.get('simplefile'))
cmdrc, output = self.cmd.run("rpm --import %s" % key_arg)