Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment