diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 10d7709858f69166b606db22f33669b833f24b5e..f1bedceba3be099b7f12d6507d69c307dba187d6 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1579,6 +1579,7 @@ commands = { #: dictionary with aliases for commands aliases = { "masterfailover": "master-failover", + "show": "info", } diff --git a/lib/client/gnt_instance.py b/lib/client/gnt_instance.py index 367c4f8205473f4829e3f034e158b76c5eee7986..0f70021e84ff085bbe3045cdcf18e6de32e37d2c 100644 --- a/lib/client/gnt_instance.py +++ b/lib/client/gnt_instance.py @@ -1662,6 +1662,7 @@ commands = { aliases = { "start": "startup", "stop": "shutdown", + "show": "info", } diff --git a/lib/client/gnt_node.py b/lib/client/gnt_node.py index 07502466b08646f0a48fb4158bdfa96dfc5504de..888d97658d90695a4675bdf10eed95600dfb732a 100644 --- a/lib/client/gnt_node.py +++ b/lib/client/gnt_node.py @@ -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) diff --git a/lib/client/gnt_os.py b/lib/client/gnt_os.py index 3554524ff92c8a34df5b5a75d3166ffb2bbe7baf..890becc7f9f86a0e204905cc8e975803970422b3 100644 --- a/lib/client/gnt_os.py +++ b/lib/client/gnt_os.py @@ -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)