From: Thomas Thrainer Date: Tue, 20 Aug 2013 10:37:08 +0000 (+0200) Subject: Allow instance mods if only osparams are given X-Git-Tag: v2.8.0rc2~5 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/125e1230880fad8f29f57446cc7bbccfad73a953 Allow instance mods if only osparams are given osparams are now recognized as changes, so changing only those without other changes works too now. (cherry picked from commit 5eae613c2e1e65101c5d5f7d2e8ffd7cc6edc7d5) Signed-off-by: Thomas Thrainer Reviewed-by: Helga Velroyen Reviewed-by: Guido Trotter --- diff --git a/lib/cmdlib/instance.py b/lib/cmdlib/instance.py index 87aef09..e6abee2 100644 --- a/lib/cmdlib/instance.py +++ b/lib/cmdlib/instance.py @@ -2316,8 +2316,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: