Commit 96897af7 authored by Alexander Schreiber's avatar Alexander Schreiber Committed by Michael Hanselmann
Browse files

Add "show" as alias for "info" to gnt commands



This patch adds support for "show" as an alias for "info" to
gnt-(cluster|instance|node|os). It already exists in gnt-job.
Signed-off-by: default avatarAlexander Schreiber <als@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 07923a3c
......@@ -1579,6 +1579,7 @@ commands = {
#: dictionary with aliases for commands
aliases = {
"masterfailover": "master-failover",
"show": "info",
}
......
......@@ -1662,6 +1662,7 @@ commands = {
aliases = {
"start": "startup",
"stop": "shutdown",
"show": "info",
}
......
......@@ -987,7 +987,13 @@ commands = {
"[<node_name>...]", "List health of node(s) using out-of-band"),
}
#: dictionary with aliases for commands
aliases = {
"show": "info",
}
def Main():
return GenericMain(commands, override={"tag_type": constants.TAG_NODE},
return GenericMain(commands, aliases=aliases,
override={"tag_type": constants.TAG_NODE},
env_override=_ENV_OVERRIDE)
......@@ -297,6 +297,11 @@ commands = {
"", "Modify the OS parameters"),
}
#: dictionary with aliases for commands
aliases = {
"show": "info",
}
def Main():
return GenericMain(commands)
return GenericMain(commands, aliases=aliases)
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