Commit 5eae613c authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Allow instance mods if only osparams are given



osparams are now recognized as changes, so changing only those without
other changes works too now.
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent a61a0813
......@@ -2349,8 +2349,8 @@ class LUInstanceSetParams(LogicalUnit):
def CheckArguments(self):
if not (self.op.nics or self.op.disks or self.op.disk_template or
self.op.hvparams or self.op.beparams or self.op.os_name or
self.op.offline is not None or self.op.runtime_mem or
self.op.pnode):
self.op.osparams or self.op.offline is not None or
self.op.runtime_mem or self.op.pnode):
raise errors.OpPrereqError("No changes submitted", errors.ECODE_INVAL)
if self.op.hvparams:
......
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