summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-03-17 18:28:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-03-17 18:28:10 +0000
commit58b5e071c9b7c3fb27b0c918beca8f8d4fd557ee (patch)
tree1233255cfc8bd9467eeec36c7146102d936b20b0 /src/lib/Client/Frame.py
parentb7e58e817e6326a6317387fe06db2a6448aea469 (diff)
downloadbcfg2-58b5e071c9b7c3fb27b0c918beca8f8d4fd557ee.tar.gz
bcfg2-58b5e071c9b7c3fb27b0c918beca8f8d4fd557ee.tar.bz2
bcfg2-58b5e071c9b7c3fb27b0c918beca8f8d4fd557ee.zip
Remove validation states from Tool instances (in preparation for DecisionList stuff)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4423 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 6d761317d..30aec7924 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -64,7 +64,7 @@ class Frame:
for tool in tclass.values():
try:
- self.tools.append(tool(self.logger, setup, config, self.states))
+ self.tools.append(tool(self.logger, setup, config))
except Bcfg2.Client.Tools.toolInstantiationError:
continue
except:
@@ -126,7 +126,7 @@ class Frame:
self.states[entry] = False
for tool in self.tools:
try:
- tool.Inventory()
+ tool.Inventory(self.states)
except:
self.logger.error("%s.Inventory() call failed:" % tool.__name__, exc_info=1)
@@ -205,7 +205,7 @@ class Frame:
if not handled:
continue
try:
- tool.Install(handled)
+ tool.Install(handled, self.states)
except:
self.logger.error("%s.Install() call failed:" % tool.__name__, exc_info=1)
@@ -225,7 +225,7 @@ class Frame:
tbm = [(t, b) for t in self.tools for b in mbundles]
for tool, bundle in tbm:
try:
- tool.Inventory([bundle])
+ tool.Inventory(self.states, [bundle])
except:
self.logger.error("%s.Inventory() call failed:" % tool.__name__, exc_info=1)
clobbered = [entry for bundle in mbundles for entry in bundle \
@@ -241,9 +241,9 @@ class Frame:
for tool in self.tools:
try:
if bundle in mbundles:
- tool.BundleUpdated(bundle)
+ tool.BundleUpdated(bundle, self.states)
else:
- tool.BundleNotUpdated(bundle)
+ tool.BundleNotUpdated(bundle, self.states)
except:
self.logger.error("%s.BundleNotUpdated() call failed:" % \
(tool.__name__), exc_info=1)