From: Guido Trotter Date: Tue, 22 Jul 2008 14:25:21 +0000 (+0000) Subject: Use Update in SetInstanceParams X-Git-Tag: v2.0.0alpha0~244 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/ea94e1cdbe7da191bcf31717512aef8804872a2b Use Update in SetInstanceParams When we set the instance params we're not adding a new instance, but just updating an existing one, so why using AddInstance? Reviewed-by: iustinp --- diff --git a/lib/cmdlib.py b/lib/cmdlib.py index ca7ff68..35093f4 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4284,7 +4284,7 @@ class LUSetInstanceParams(LogicalUnit): instance.vnc_bind_address = self.vnc_bind_address result.append(("vnc_bind_address", self.vnc_bind_address)) - self.cfg.AddInstance(instance) + self.cfg.Update(instance) return result