From be1fa6136c72720d91f3d5d3eb32e4ef6e78b235 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sat, 27 Sep 2008 15:58:03 +0000 Subject: [PATCH] Add serial_no attributes to objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/objects.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/objects.py b/lib/objects.py index a26907d83..23ecfc87d 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -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): "hvm_nic_type", "hvm_disk_type", "vnc_bind_address", + "serial_no", ] def _ComputeSecondaryNodes(self): @@ -679,6 +680,7 @@ class Node(TaggableObject): "name", "primary_ip", "secondary_ip", + "serial_no", ] -- GitLab