summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-06-28 21:17:47 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-06-28 21:17:47 +0000
commit7491ea929369bb8d41e84f07fab94dde4e38251d (patch)
tree6c31f0065d25f37ca56fde5ed27aa53cf758c829
parent4a1cae174b48e97190fe6950318b73e7d8f993ff (diff)
downloadbcfg2-7491ea929369bb8d41e84f07fab94dde4e38251d.tar.gz
bcfg2-7491ea929369bb8d41e84f07fab94dde4e38251d.tar.bz2
bcfg2-7491ea929369bb8d41e84f07fab94dde4e38251d.zip
print package versions for incorrect entries
(Logical change 1.241) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1006 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/sbin/bcfg25
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 642bc7999..9b8736f84 100644
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -158,7 +158,10 @@ if __name__ == '__main__':
failed = [key for key, value in client.states.iteritems() if not value]
if failed:
client.CondPrint('verbose', "Failing Entries:")
- [client.CondPrint('verbose', "%s:%s" % (key.tag, key.get('name'))) for key in failed]
+ [client.CondPrint('verbose', "%s:%s" % (key.tag, key.get('name'))) for key in
+ failed if key.tag != 'Package']
+ [client.CondPrint('verbose', "%s:%s-%s"%(key.tag, key.get('name'),
+ key.get('version', 'unset'))) for key in failed if key.tag == 'Package']
else:
client.CondPrint("verbose", "All entries correct")