From 89ff8e15ca808f49233c015962ae24aedf7561cc Mon Sep 17 00:00:00 2001
From: Manuel Franceschini <manuel.franceschini@gmail.com>
Date: Mon, 31 Mar 2008 10:58:16 +0000
Subject: [PATCH] Add method SetVGName() to config.py

Reviewed-by: iustinp
---
 lib/config.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/config.py b/lib/config.py
index d8c2605f7..f5f9ea025 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -612,6 +612,14 @@ class ConfigWriter:
     self._ReleaseLock()
     return self._config_data.cluster.volume_group_name
 
+  def SetVGName(self, vg_name):
+    """Set the volume group name.
+
+    """
+    self._OpenConfig()
+    self._config_data.cluster["volume_group_name"] = vg_name
+    self._WriteConfig()
+
   def GetDefBridge(self):
     """Return the default bridge.
 
-- 
GitLab