Revision ad8b2f9b lib/ssconf.py
b/lib/ssconf.py | ||
---|---|---|
52 | 52 |
|
53 | 53 |
""" |
54 | 54 |
self._file_name = file_name |
55 |
self.Reload()
|
|
55 |
self._Load()
|
|
56 | 56 |
|
57 |
def Reload(self):
|
|
58 |
"""Reloads the config file.
|
|
57 |
def _Load(self):
|
|
58 |
"""Loads (or reloads) the config file.
|
|
59 | 59 |
|
60 | 60 |
""" |
61 | 61 |
try: |
... | ... | |
67 | 67 |
raise errors.ConfigurationError("Cannot load config file %s: %s" % |
68 | 68 |
(self._file_name, err)) |
69 | 69 |
|
70 |
# Clients can request a reload of the config file, so we export our internal |
|
71 |
# _Load function as Reload. |
|
72 |
Reload = _Load |
|
73 |
|
|
70 | 74 |
def GetClusterName(self): |
71 | 75 |
return self._config_data["cluster"]["cluster_name"] |
72 | 76 |
|
Also available in: Unified diff