Commit ea94e1cd authored by Guido Trotter's avatar Guido Trotter
Browse files

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
parent 8659b73e
......@@ -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
......
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