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

SimpleConfigReader: add serial numbers reading



GetConfigSerialNo and GetClusterSerialNo return respectively the serial
number for the config and for the cluster object.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 40765aa0
......@@ -91,6 +91,12 @@ class SimpleConfigReader(object):
def GetNodeList(self):
return self._config_data["nodes"].keys()
def GetConfigSerialNo(self):
return self._config_data["serial_no"]
def GetClusterSerialNo(self):
return self._config_data["cluster"]["serial_no"]
class SimpleStore(object):
"""Interface to static cluster data.
......
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