Commit f7c8f153 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix OpSetInstanceParams.disk_template check



When moving the opcode parameters I moved two or three checks from an
opcode's CheckArguments function to the type checks. This was one of
them and unfortunately I didn't notice the parameter can be None.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e23881ed
......@@ -990,7 +990,7 @@ class OpSetInstanceParams(OpCode):
("disks", ht.EmptyList, ht.TList),
("beparams", ht.EmptyDict, ht.TDict),
("hvparams", ht.EmptyDict, ht.TDict),
("disk_template", None, _CheckDiskTemplate),
("disk_template", None, ht.TOr(ht.TNone, _CheckDiskTemplate)),
("remote_node", None, ht.TMaybeString),
("os_name", None, ht.TMaybeString),
("force_variant", False, ht.TBool),
......
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