Commit 78f3bd30 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Write ganeti-watcher status file even if something failed

Reviewed-by: iustinp
parent 71714516
......@@ -335,10 +335,12 @@ class Watcher(object):
def Run(self):
notepad = WatcherState()
self.CheckInstances(notepad)
self.CheckDisks(notepad)
self.VerifyDisks()
notepad.Save()
try:
self.CheckInstances(notepad)
self.CheckDisks(notepad)
self.VerifyDisks()
finally:
notepad.Save()
def CheckDisks(self, notepad):
"""Check all nodes for restarted ones.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment