Rename watcher's constant for instance status file
authorMichael Hanselmann <hansmi@google.com>
Wed, 27 Jul 2011 08:46:52 +0000 (10:46 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 29 Jul 2011 08:21:46 +0000 (10:21 +0200)
“upfile” is a bad name.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/constants.py
lib/watcher/__init__.py

index 140ac52..ea8f408 100644 (file)
@@ -138,7 +138,7 @@ CONFD_HMAC_KEY = DATA_DIR + "/hmac.key"
 CLUSTER_DOMAIN_SECRET_FILE = DATA_DIR + "/cluster-domain-secret"
 WATCHER_STATEFILE = DATA_DIR + "/watcher.data"
 WATCHER_PAUSEFILE = DATA_DIR + "/watcher.pause"
-INSTANCE_UPFILE = RUN_GANETI_DIR + "/instance-status"
+INSTANCE_STATUS_FILE = RUN_GANETI_DIR + "/instance-status"
 SSH_KNOWN_HOSTS_FILE = DATA_DIR + "/known_hosts"
 RAPI_USERS_FILE = DATA_DIR + "/rapi/users"
 QUEUE_DIR = DATA_DIR + "/queue"
index 9f6b2c9..f931388 100644 (file)
@@ -318,9 +318,9 @@ def GetClusterData():
 
   instances = {}
 
-  # write the upfile
+  # write the instance status file
   up_data = "".join(["%s %s\n" % (fields[0], fields[1]) for fields in result])
-  utils.WriteFile(file_name=constants.INSTANCE_UPFILE, data=up_data)
+  utils.WriteFile(file_name=constants.INSTANCE_STATUS_FILE, data=up_data)
 
   for fields in result:
     (name, status, autostart, snodes) = fields