From e2308ed6e3ae837dc927b6fd6b0ed366e03bd706 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 14 Jan 2021 14:13:01 -0500 Subject: [PATCH] ansible-galaxy - correct collections-path command line arg (#73193) It should be plural to match other options and environment variables. --- .../fragments/galaxy-collection-list-correct-arg-name.yml | 2 ++ lib/ansible/cli/galaxy.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/galaxy-collection-list-correct-arg-name.yml diff --git a/changelogs/fragments/galaxy-collection-list-correct-arg-name.yml b/changelogs/fragments/galaxy-collection-list-correct-arg-name.yml new file mode 100644 index 00000000000..1db4f01e5e6 --- /dev/null +++ b/changelogs/fragments/galaxy-collection-list-correct-arg-name.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-galaxy - correct ``collections-path`` command line argument (https://github.com/ansible/ansible/issues/73127) diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index 25385e220c7..3daeab1b133 100644 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -165,7 +165,7 @@ class GalaxyCLI(CLI): 'writable one configured via DEFAULT_ROLES_PATH: %s ' % default_roles_path) collections_path = opt_help.argparse.ArgumentParser(add_help=False) - collections_path.add_argument('-p', '--collection-path', dest='collections_path', type=opt_help.unfrack_path(pathsep=True), + collections_path.add_argument('-p', '--collections-path', dest='collections_path', type=opt_help.unfrack_path(pathsep=True), default=AnsibleCollectionConfig.collection_paths, action=opt_help.PrependListAction, help="One or more directories to search for collections in addition "