Commit d3ce528b authored by Iustin Pop's avatar Iustin Pop
Browse files

OpCreateInstance: do not require hv/be/os params



It is perfectly legal to create an instance using only defaults
(although beparams will be most times passed in), so let's relax the
requirement for these three parameters.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 9e47cad8
......@@ -6367,9 +6367,9 @@ class LUCreateInstance(LogicalUnit):
("name_check", True, _TBool),
("disks", _NoDefault, _TListOf(_TDict)),
("nics", _NoDefault, _TListOf(_TDict)),
("hvparams", _NoDefault, _TDict),
("beparams", _NoDefault, _TDict),
("osparams", _NoDefault, _TDict),
("hvparams", _EmptyDict, _TDict),
("beparams", _EmptyDict, _TDict),
("osparams", _EmptyDict, _TDict),
("no_install", None, _TMaybeBool),
("os_type", None, _TMaybeString),
("force_variant", False, _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