diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-25 20:26:55 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-25 20:26:55 +0000 |
commit | 2c4db25b0ff7a897bae79db417e7183ba0336f5a (patch) | |
tree | 2f99fadd070f526aa49dd72be791b8c1fa69b85a | |
parent | 01ba9885695861ea510272783750031d90e2ce93 (diff) | |
download | bcfg2-2c4db25b0ff7a897bae79db417e7183ba0336f5a.tar.gz bcfg2-2c4db25b0ff7a897bae79db417e7183ba0336f5a.tar.bz2 bcfg2-2c4db25b0ff7a897bae79db417e7183ba0336f5a.zip |
Add bad entries output if -e is specified
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2722 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Frame.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 9b3d482c4..834538e27 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -253,11 +253,15 @@ class Frame: self.logger.info('\nPhase: %s' % phase) self.logger.info('Correct entries:\t%d' % self.states.values().count(True)) self.logger.info('Incorrect entries:\t%d' % self.states.values().count(False)) + if phase == 'final' and self.states.values().count(False): + self.logger.info(["%s:%s" % (entry.tag, entry.get('name')) for \ + entry in self.states if not self.states[entry]]) self.logger.info('Total managed entries:\t%d' % len(self.states.values())) self.logger.info('Unmanaged entries:\t%d' % len(self.extra)) if phase == 'final' and self.setup['extra']: self.logger.info(["%s:%s" % (entry.tag, entry.get('name')) \ for entry in self.extra]) + self.logger.info("") if ((self.states.values().count(False) == 0) and not self.extra): |