Revision 78f44650 daemons/ganeti-watcher

b/daemons/ganeti-watcher
244 244

  
245 245
  all_results = cli.PollJob(job_id, cl=client, feedback_fn=logging.debug)
246 246

  
247
  logging.debug("Got data from cluster, writing instance status file")
248

  
247 249
  result = all_results[0]
248 250
  smap = {}
249 251

  
250 252
  instances = {}
253

  
254
  # write the upfile
255
  up_data = "".join(["%s %s\n" % (fields[0], fields[1]) for fields in result])
256
  utils.WriteFile(file_name=constants.INSTANCE_UPFILE, data=up_data)
257

  
251 258
  for fields in result:
252 259
    (name, status, autostart, snodes) = fields
253 260

  

Also available in: Unified diff