diff options
Diffstat (limited to 'openstackclient/common/module.py')
| -rw-r--r-- | openstackclient/common/module.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openstackclient/common/module.py b/openstackclient/common/module.py index d4a5b95..0985107 100644 --- a/openstackclient/common/module.py +++ b/openstackclient/common/module.py @@ -17,9 +17,9 @@ import sys -from osc_lib.command import command from osc_lib import utils +from openstackclient import command from openstackclient.i18n import _ @@ -48,7 +48,9 @@ class ListCommand(command.Lister): columns = ('Command Group', 'Commands') if parsed_args.group: - groups = (group for group in groups if parsed_args.group in group) + groups = sorted( + group for group in groups if parsed_args.group in group + ) commands = [] for group in groups: @@ -59,7 +61,7 @@ class ListCommand(command.Lister): # TODO(bapalm): Fix this when cliff properly supports # handling the detection rather than using the hard-code below. if parsed_args.formatter == 'table': - command_names = utils.format_list(command_names, "\n") + command_names = utils.format_list(command_names, "\n") # type: ignore commands.append((group, command_names)) |
