From e218f4db6a13e61af48d4de2fbc6cb88c1acb005 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 10 Nov 2006 17:29:27 +0000 Subject: Fix __important__ handling git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2480 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Frame.py | 5 +++-- 1 file 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: -- cgit v1.2.3-1-g7c22