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 <>
Reviewed-by: default avatarOlivier Tharan <>
parent e3ac208c
......@@ -442,8 +442,8 @@ class OpCreateInstance(OpCode):
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_DSC_FIELD = "instance_name"
__slots__ = OpCode.__slots__ + ["instance_name", "os_type"]
__slots__ = OpCode.__slots__ + ["instance_name", "os_type", "force_variant"]
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