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

FailoverInstance: change AddInstance with Update

We're not adding a new instance, just making configuration changes to
the one we're working on.

Reviewed-by: imsnah
parent f9af35c8
......@@ -2678,7 +2678,7 @@ class LUFailoverInstance(LogicalUnit):
instance.primary_node = target_node
# distribute new instance config to the other nodes
self.cfg.AddInstance(instance)
self.cfg.Update(instance)
# Only start the instance if it's marked as up
if instance.status == "up":
......
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