Commit ad8b2f9b authored by Guido Trotter's avatar Guido Trotter
Browse files

SimpleConfigReader: s/Reload/_Load/

Since we use it also to load the config file initially we rename the
Reload function to _Load. Then we re-export it as Reload to clients
(since for them it's a reload).
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent 3552cd2e
......@@ -52,10 +52,10 @@ class SimpleConfigReader(object):
self._file_name = file_name
def Reload(self):
"""Reloads the config file.
def _Load(self):
"""Loads (or reloads) the config file.
......@@ -67,6 +67,10 @@ class SimpleConfigReader(object):
raise errors.ConfigurationError("Cannot load config file %s: %s" %
(self._file_name, err))
# Clients can request a reload of the config file, so we export our internal
# _Load function as Reload.
Reload = _Load
def GetClusterName(self):
return self._config_data["cluster"]["cluster_name"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment