From b6102dab4d94f5fbc0bcb5e3396518b21fd6796e Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Sun, 15 Jun 2008 10:55:24 +0000 Subject: [PATCH] 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 --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index b550e01b2..dd185f983 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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": -- GitLab