diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-03-12 23:08:02 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-03-12 23:08:02 +0000 |
commit | a2f3e9c4fc7d6cf64ebe6c954a37c75b0c4176e2 (patch) | |
tree | 3724cc09e675e5fe84aef7acfd196796a78669cf /src/lib/Client/Frame.py | |
parent | 6f641c969b08e2655836ad1cc13abc32d9f98296 (diff) | |
download | bcfg2-a2f3e9c4fc7d6cf64ebe6c954a37c75b0c4176e2.tar.gz bcfg2-a2f3e9c4fc7d6cf64ebe6c954a37c75b0c4176e2.tar.bz2 bcfg2-a2f3e9c4fc7d6cf64ebe6c954a37c75b0c4176e2.zip |
Fix interactive mode
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2932 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-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 c65bba7b4..9fa276e5e 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -188,6 +188,10 @@ class Frame: self.logger.info(["%s:%s" % (e.tag, e.get('name')) for e in b_to_remv]) [self.whitelist.remove(ent) for ent in b_to_remv] + if self.setup['interactive']: + self.whitelist = promptFilter(prompt, self.whitelist) + self.removal = promptFilter(rprompt, self.removal) + for entry in candidates: if entry not in self.whitelist: self.blacklist.append(entry) |