Skip to content
Snippets Groups Projects
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 <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3552cd2e
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,10 @@ class SimpleConfigReader(object):
"""
self._file_name = file_name
self.Reload()
self._Load()
def Reload(self):
"""Reloads the config file.
def _Load(self):
"""Loads (or reloads) the config file.
"""
try:
......@@ -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"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment