summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-11-10 17:29:27 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-11-10 17:29:27 +0000
commite218f4db6a13e61af48d4de2fbc6cb88c1acb005 (patch)
tree06c7d58ebebbc769eba2a5b6cdaf6d51e68102dc
parentfe13c5f640bae13e0479929810366963da0f191a (diff)
downloadbcfg2-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.py5
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: