Commit 89ff8e15 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Add method SetVGName() to config.py

Reviewed-by: iustinp
parent eedc99de
......@@ -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.
......
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