From c7db9500b42648e6172f333bd1c23c70f3b2fb63 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 29 Jul 2009 23:41:52 +0000 Subject: YUMng: skip unbound gpg key packages git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5393 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/YUMng.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-1-g7c22