summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/RPMng.py
diff options
context:
space:
mode:
authorMike Brady <mike.brady@devnull.net.nz>2007-08-11 18:40:25 +0000
committerMike Brady <mike.brady@devnull.net.nz>2007-08-11 18:40:25 +0000
commit619d8822eecbfe604c6cd008b818bcc42c8ab221 (patch)
tree329aa25c513f52d896aafc1b9312643720dc5424 /src/lib/Client/Tools/RPMng.py
parentc8f67ba610b11d94ae13d27e501f0a40a6c5feab (diff)
downloadbcfg2-619d8822eecbfe604c6cd008b818bcc42c8ab221.tar.gz
bcfg2-619d8822eecbfe604c6cd008b818bcc42c8ab221.tar.bz2
bcfg2-619d8822eecbfe604c6cd008b818bcc42c8ab221.zip
RPMng: Improved debug output when required attributes are not present.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3624 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/RPMng.py')
-rw-r--r--src/lib/Client/Tools/RPMng.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py
index fae021a81..15f51ab79 100644
--- a/src/lib/Client/Tools/RPMng.py
+++ b/src/lib/Client/Tools/RPMng.py
@@ -713,7 +713,7 @@ class RPMng(Bcfg2.Client.Tools.PkgTool):
if [attr for attr in self.__new_gpg_ireq__[inst.tag] \
if attr not in inst.attrib]:
self.logger.error("Incomplete information for entry %s:%s; cannot install"\
- % (inst.tag, inst.get('name')))
+ % (inst.tag, entry.get('name')))
return False
else:
# New format with Instances.
@@ -721,14 +721,18 @@ class RPMng(Bcfg2.Client.Tools.PkgTool):
if [attr for attr in self.__new_ireq__[entry.tag] if attr not in entry.attrib]:
self.logger.error("Incomplete information for entry %s:%s; cannot install" \
% (entry.tag, entry.get('name')))
+ self.logger.error(" Required attributes that may not be present are %s" \
+ % (self.__new_ireq__[entry.tag]))
return False
# Check that the Instance Level has what we need for verification.
for inst in instances:
if inst.tag == 'Instance':
if [attr for attr in self.__new_ireq__[inst.tag] \
if attr not in inst.attrib]:
- self.logger.error("Incomplete information for entry %s:%s; cannot install" \
- % (inst.tag, inst.get('name')))
+ self.logger.error("Incomplete information for %s of package %s; cannot install" \
+ % (inst.tag, entry.get('name')))
+ self.logger.error(" Required attributes that may not be present are %s" \
+ % (self.__new_ireq__[inst.tag]))
return False
return True