diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-10 17:29:27 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-10 17:29:27 +0000 |
commit | e218f4db6a13e61af48d4de2fbc6cb88c1acb005 (patch) | |
tree | 06c7d58ebebbc769eba2a5b6cdaf6d51e68102dc | |
parent | fe13c5f640bae13e0479929810366963da0f191a (diff) | |
download | bcfg2-e218f4db6a13e61af48d4de2fbc6cb88c1acb005.tar.gz bcfg2-e218f4db6a13e61af48d4de2fbc6cb88c1acb005.tar.bz2 bcfg2-e218f4db6a13e61af48d4de2fbc6cb88c1acb005.zip |
Fix __important__ handling
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2480 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Frame.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index be05e878e..749e1288c 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -45,9 +45,10 @@ class Frame: if not self.setup['dryrun']: for cfile in [cfl for cfl in config.findall(".//ConfigFile") \ if cfl.get('name') in self.__important__]: - self.VerifyEntry(cfile) + tool = [t for t in self.tools if t.handlesEntry(cfile)][0] + self.states[cfile] = tool.VerifyConfigFile(cfile, []) if not self.states[cfile]: - self.InstallConfigFile(cfile) + tool.InstallConfigFile(cfile) # find entries not handled by any tools problems = [entry for struct in config for entry in struct if entry not in self.handled] if problems: |