Commit 9fc58eac authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Export VG name via LUQueryConfigValues



This will be used by LUXI client programs to display the VG name.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a889c536
......@@ -4224,7 +4224,7 @@ class LUQueryConfigValues(NoHooksLU):
REQ_BGL = False
_FIELDS_DYNAMIC = utils.FieldSet()
_FIELDS_STATIC = utils.FieldSet("cluster_name", "master_node", "drain_flag",
"watcher_pause")
"watcher_pause", "volume_group_name")
def CheckArguments(self):
_CheckOutputFields(static=self._FIELDS_STATIC,
......@@ -4248,6 +4248,8 @@ class LUQueryConfigValues(NoHooksLU):
entry = os.path.exists(constants.JOB_QUEUE_DRAIN_FILE)
elif field == "watcher_pause":
entry = utils.ReadWatcherPauseFile(constants.WATCHER_PAUSEFILE)
elif field == "volume_group_name":
entry = self.cfg.GetVGName()
else:
raise errors.ParameterError(field)
values.append(entry)
......
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