diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-20 15:37:51 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-20 15:37:51 +0000 |
commit | 42baeeacb7618bcc269b2daa30766aff26f4f9f6 (patch) | |
tree | 29c880740611e0452f2cf31637c9a011f781d5ba /src | |
parent | d9762f9b90ce82f80e89fdaee5cd30300e08cc24 (diff) | |
download | bcfg2-42baeeacb7618bcc269b2daa30766aff26f4f9f6.tar.gz bcfg2-42baeeacb7618bcc269b2daa30766aff26f4f9f6.tar.bz2 bcfg2-42baeeacb7618bcc269b2daa30766aff26f4f9f6.zip |
Add temporary -e mode to display extra configuration entry details (Resolves Ticket #369)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2703 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Frame.py | 3 | ||||
-rwxr-xr-x | src/sbin/bcfg2 | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 47813defb..f9d7a8ab0 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -222,6 +222,9 @@ class Frame: self.logger.info('Incorrect entries:\t%d' % self.states.values().count(False)) 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): diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 811be2847..0c45c5276 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -27,6 +27,8 @@ class Client: # env, cfpath, default, boolean)), 'verbose':(('-v', False,"enable verbose output"), False, False, False, True), + 'extra':(('-e', False,"enable extra entry detailed output"), + False, False, False, True), 'quick':(('-q', False, "disable some checksum verification"), False, False, False, True), 'debug':(('-d', False, "enable debugging output"), |