Commit be1fa613 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add serial_no attributes to objects

This patch adds the ‘serial_no’ attribute to the other top-level objects
(the configuration object itself, the nodes and the instances).

Reviewed-by: ultrotter
parent 97abc79f
......@@ -237,7 +237,7 @@ class TaggableObject(ConfigObject):
class ConfigData(ConfigObject):
"""Top-level config object."""
__slots__ = ["cluster", "nodes", "instances"]
__slots__ = ["cluster", "nodes", "instances", "serial_no"]
def ToDict(self):
"""Custom function for top-level config data.
......@@ -518,6 +518,7 @@ class Instance(TaggableObject):
def _ComputeSecondaryNodes(self):
......@@ -679,6 +680,7 @@ class Node(TaggableObject):
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