From 3448aa2292aa4a21941da6c2c809007d678f9ef0 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 16 Feb 2009 11:08:18 +0000
Subject: [PATCH] watcher: fix checking of boot IDs

The recent change (commit 2151) to the watcher to make it handle offline
nodes also saves the offline attribute to the state file, but this is
not needed and also breaks the checking of the boot ID. This patch
simply removes it, restoring the correct behaviour.

Reviewed-by: imsnah
---
 daemons/ganeti-watcher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemons/ganeti-watcher b/daemons/ganeti-watcher
index 67fe6bb8f..f12cab595 100755
--- a/daemons/ganeti-watcher
+++ b/daemons/ganeti-watcher
@@ -340,7 +340,7 @@ class Watcher(object):
 
       # Keep changed boot IDs
       for name in check_nodes:
-        notepad.SetNodeBootID(name, self.bootids[name])
+        notepad.SetNodeBootID(name, self.bootids[name][0])
 
   def CheckInstances(self, notepad):
     """Make a pass over the list of instances, restarting downed ones.
-- 
GitLab