Revision 2859b87b daemons/ganeti-watcher

b/daemons/ganeti-watcher
36 36
from ganeti import utils
37 37
from ganeti import constants
38 38
from ganeti import serializer
39
from ganeti import ssconf
40 39
from ganeti import errors
41 40
from ganeti import opcodes
42 41
from ganeti import logger
......
282 281

  
283 282
  """
284 283
  def __init__(self):
285
    sstore = ssconf.SimpleStore()
286
    master = sstore.GetMasterNode()
284
    master = client.QueryConfigValues(["master_node"])[0]
287 285
    if master != utils.HostInfo().name:
288 286
      raise NotMasterError("This is not the master node")
289 287
    self.instances = GetInstanceList()

Also available in: Unified diff