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
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.
"hvm_nic_type",
"hvm_disk_type",
"vnc_bind_address",
+ "serial_no",
]
def _ComputeSecondaryNodes(self):
"name",
"primary_ip",
"secondary_ip",
+ "serial_no",
]