Revision 78f44650

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

  
b/lib/constants.py
96 96
SSL_CERT_FILE = DATA_DIR + "/server.pem"
97 97
RAPI_CERT_FILE = DATA_DIR + "/rapi.pem"
98 98
WATCHER_STATEFILE = DATA_DIR + "/watcher.data"
99
INSTANCE_UPFILE = RUN_GANETI_DIR + "/instance-status"
99 100
SSH_KNOWN_HOSTS_FILE = DATA_DIR + "/known_hosts"
100 101
RAPI_USERS_FILE = DATA_DIR + "/rapi_users"
101 102
QUEUE_DIR = DATA_DIR + "/queue"

Also available in: Unified diff