Use RPC calls instead of ssconf.
---
 daemons/ganeti-watcher |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/daemons/ganeti-watcher b/daemons/ganeti-watcher
index 074fc3b..bbc1160 100755
--- a/daemons/ganeti-watcher
+++ b/daemons/ganeti-watcher
@@ -38,7 +38,6 @@ from optparse import OptionParser
 from ganeti import utils
 from ganeti import constants
 from ganeti import serializer
-from ganeti import ssconf
 from ganeti import errors
 from ganeti import opcodes
 from ganeti import logger
@@ -306,8 +305,7 @@ class Watcher(object):
 
   """
   def __init__(self):
-    sstore = ssconf.SimpleStore()
-    master = sstore.GetMasterNode()
+    master = client.QueryConfigValues(["master_node"])[0]
     if master != utils.HostInfo().name:
       raise NotMasterError("This is not the master node")
     self.instances = GetInstanceList()
-- 
1.6.0.2

Reply via email to