summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-11-24 15:31:23 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-11-24 15:31:23 +0000
commitd2b9831aced5f7c1c3fbc7c247da29bb27b687a4 (patch)
tree72242709182cdda7c399813454d8236d5e04f48a /src
parent1a1121aa48789119f3efb52aaba11e9c95881f4f (diff)
downloadbcfg2-d2b9831aced5f7c1c3fbc7c247da29bb27b687a4.tar.gz
bcfg2-d2b9831aced5f7c1c3fbc7c247da29bb27b687a4.tar.bz2
bcfg2-d2b9831aced5f7c1c3fbc7c247da29bb27b687a4.zip
Add inventory recheck functionality to -k mode (Deals with part 3 of Ticket #280)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2538 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Frame.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 2380ed4a1..c5eec7be4 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -179,7 +179,13 @@ class Frame:
if ((self.states.values().count(False) == 0) and not self.extra):
self.logger.info('All entries correct.')
-
+
+ def ReInventory(self):
+ '''Recheck everything'''
+ if not self.setup['dryrun'] and self.setup['kevlar']:
+ self.logger.info("Rechecking system inventory")
+ self.Inventory()
+
def Execute(self):
'''Run all methods'''
self.Inventory()
@@ -189,6 +195,9 @@ class Frame:
self.Install()
self.times['install'] = time.time()
self.Remove()
+ self.times['remove'] = time.time()
+ self.ReInventory()
+ self.times['reinventory'] = time.time()
self.times['finished'] = time.time()
self.CondDisplayState('final')