Commit 47804ec9 authored by Guido Trotter's avatar Guido Trotter
Browse files

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: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent e3ac208c
...@@ -442,8 +442,8 @@ class OpCreateInstance(OpCode): ...@@ -442,8 +442,8 @@ class OpCreateInstance(OpCode):
OP_ID = "OP_INSTANCE_CREATE" OP_ID = "OP_INSTANCE_CREATE"
OP_DSC_FIELD = "instance_name" OP_DSC_FIELD = "instance_name"
__slots__ = OpCode.__slots__ + [ __slots__ = OpCode.__slots__ + [
"instance_name", "os_type", "pnode", "instance_name", "os_type", "force_variant",
"disk_template", "snode", "mode", "pnode", "disk_template", "snode", "mode",
"disks", "nics", "disks", "nics",
"src_node", "src_path", "start", "src_node", "src_path", "start",
"wait_for_sync", "ip_check", "wait_for_sync", "ip_check",
...@@ -458,7 +458,7 @@ class OpReinstallInstance(OpCode): ...@@ -458,7 +458,7 @@ class OpReinstallInstance(OpCode):
"""Reinstall an instance's OS.""" """Reinstall an instance's OS."""
OP_ID = "OP_INSTANCE_REINSTALL" OP_ID = "OP_INSTANCE_REINSTALL"
OP_DSC_FIELD = "instance_name" OP_DSC_FIELD = "instance_name"
__slots__ = OpCode.__slots__ + ["instance_name", "os_type"] __slots__ = OpCode.__slots__ + ["instance_name", "os_type", "force_variant"]
class OpRemoveInstance(OpCode): class OpRemoveInstance(OpCode):
......
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