diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-08-05 17:43:08 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-08-05 17:43:08 +0000 |
commit | 2bbb58ca21e84aa157393a58d35bc6ec08fedcea (patch) | |
tree | 5a09f8bdbebb85a0d30b644d64ccbfe1fd276ca9 /src | |
parent | 1b9d6e9b536ddbc2a78cd641b0a7014315cfe03d (diff) | |
download | bcfg2-2bbb58ca21e84aa157393a58d35bc6ec08fedcea.tar.gz bcfg2-2bbb58ca21e84aa157393a58d35bc6ec08fedcea.tar.bz2 bcfg2-2bbb58ca21e84aa157393a58d35bc6ec08fedcea.zip |
Improve interactive mode entry selection for __important__ entries (another patch from f.pauget) (Resolves Ticket #590)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4856 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Frame.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 24fbc52bf..a54760b12 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -77,14 +77,16 @@ class Frame: self.logger.info("Loaded tool drivers:") self.logger.info([tool.__name__ for tool in self.tools]) - if not self.dryrun and not self.setup['interactive'] and \ - not self.setup['bundle']: + if not self.dryrun and not self.setup['bundle']: for cfile in [cfl for cfl in config.findall(".//ConfigFile") \ if cfl.get('name') in self.__important__]: tl= [t for t in self.tools if t.handlesEntry(cfile) \ and t.canVerify(cfile)] if tl: if not tl[0].VerifyConfigFile(cfile, []): + if self.setup['interactive'] and not \ + promptFilter("Install %s: %s? (y/N):", [cfile]): + continue try: self.states[cfile] = tl[0].InstallConfigFile(cfile) except: |