diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2018-12-18 13:03:22 -0800 |
---|---|---|
committer | Jordan Borean <jborean93@gmail.com> | 2018-12-19 07:03:22 +1000 |
commit | fcd1486b51a99a84aad6e76c26e92f26da499004 (patch) | |
tree | 8a35de6e7e65e1f9301a6eafff5c847856920eb0 /lib/ansible/cli/config.py | |
parent | 545edc91147a21e9bd3a1f882c46c97d85df72f6 (diff) | |
download | ansible-fcd1486b51a99a84aad6e76c26e92f26da499004.tar.gz |
VALID_ACTIONS for cli subcommands will now be a frozenset (#50058)
Diffstat (limited to 'lib/ansible/cli/config.py')
-rw-r--r-- | lib/ansible/cli/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/cli/config.py b/lib/ansible/cli/config.py index 413766e72b..a727924283 100644 --- a/lib/ansible/cli/config.py +++ b/lib/ansible/cli/config.py @@ -25,7 +25,7 @@ display = Display() class ConfigCLI(CLI): """ Config command line class """ - VALID_ACTIONS = ("view", "dump", "list") # TODO: edit, update, search + VALID_ACTIONS = frozenset(("view", "dump", "list")) # TODO: edit, update, search def __init__(self, args, callback=None): @@ -36,7 +36,7 @@ class ConfigCLI(CLI): def parse(self): self.parser = CLI.base_parser( - usage="usage: %%prog [%s] [--help] [options] [ansible.cfg]" % "|".join(self.VALID_ACTIONS), + usage="usage: %%prog [%s] [--help] [options] [ansible.cfg]" % "|".join(sorted(self.VALID_ACTIONS)), epilog="\nSee '%s <command> --help' for more information on a specific command.\n\n" % os.path.basename(sys.argv[0]), desc="View, edit, and manage ansible configuration.", ) |