Revision e00ea635 scripts/gnt-cluster

b/scripts/gnt-cluster
127 127
    opts - class with options as members
128 128

  
129 129
  """
130
  sstore = ssconf.SimpleStore()
131
  print sstore.GetMasterNode()
130
  print GetClient().QueryConfigValues(["master_node"])[0]
132 131
  return 0
133 132

  
134 133

  
......
172 171

  
173 172
  op = opcodes.OpQueryNodes(output_fields=["name"], names=opts.nodes)
174 173
  results = [row[0] for row in SubmitOpCode(op) if row[0] != myname]
174

  
175
  # TODO: Potential inconsistency between local node and master
175 176
  srun = ssh.SshRunner(cfg)
176 177
  for node in results:
177 178
    if not srun.CopyFileToNode(node, filename):
......
198 199
  op = opcodes.OpQueryNodes(output_fields=["name"], names=opts.nodes)
199 200
  nodes = [row[0] for row in SubmitOpCode(op)]
200 201

  
201
  sstore = ssconf.SimpleStore()
202
  master_node = sstore.GetMasterNode()
202
  # TODO: Potential inconsistency between local node and master
203
  master_node = cfg.GetMasterNode()
203 204
  srun = ssh.SshRunner(cfg)
204 205

  
205 206
  # Make sure master node is at list end

Also available in: Unified diff