From 47804ec9441f89433e3abd117dd578622981dfc4 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 2 Oct 2009 16:48:38 +0100 Subject: [PATCH] Add force_variant slot to Create/ReinstallInstance These two opcode need to know whether an unknown variant must be forced through or not. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Olivier Tharan <olive@google.com> --- lib/opcodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/opcodes.py b/lib/opcodes.py index 9fea1a101..929c62fee 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -442,8 +442,8 @@ class OpCreateInstance(OpCode): OP_ID = "OP_INSTANCE_CREATE" OP_DSC_FIELD = "instance_name" __slots__ = OpCode.__slots__ + [ - "instance_name", "os_type", "pnode", - "disk_template", "snode", "mode", + "instance_name", "os_type", "force_variant", + "pnode", "disk_template", "snode", "mode", "disks", "nics", "src_node", "src_path", "start", "wait_for_sync", "ip_check", @@ -458,7 +458,7 @@ class OpReinstallInstance(OpCode): """Reinstall an instance's OS.""" OP_ID = "OP_INSTANCE_REINSTALL" OP_DSC_FIELD = "instance_name" - __slots__ = OpCode.__slots__ + ["instance_name", "os_type"] + __slots__ = OpCode.__slots__ + ["instance_name", "os_type", "force_variant"] class OpRemoveInstance(OpCode): -- GitLab