From 1fc34c48cb37fde5fbab44a0a85dbaa4e003e485 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Mon, 1 Nov 2010 14:00:33 +0100
Subject: [PATCH] config: Write ssconf after renaming instance
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This fixes a bug where the ssconf_instance_list file was
not updated after an instance rename.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/config.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/config.py b/lib/config.py
index 39878b757..abc9a0ca2 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -995,6 +995,9 @@ class ConfigWriter:
                                                              inst.name,
                                                              disk.iv_name))
 
+    # Force update of ssconf files
+    self._config_data.cluster.serial_no += 1
+
     self._config_data.instances[inst.name] = inst
     self._WriteConfig()
 
-- 
GitLab