From 0bf7b3f4efdf9b1aac2510e641076d3e673f00a6 Mon Sep 17 00:00:00 2001 From: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Date: Thu, 21 Oct 2021 17:50:33 -0400 Subject: [PATCH] Fix ansible-galaxy collection verify subcommand help message. (#76108) * Fix ansible-galaxy collection verify subcommand help message. * changelog --- .../76108-fix-ansible-galaxy-collection-verify-help.yaml | 3 +++ lib/ansible/cli/galaxy.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml diff --git a/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml b/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml new file mode 100644 index 00000000000..75b8f0925f1 --- /dev/null +++ b/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml @@ -0,0 +1,3 @@ +bugfixes: + - Fix help message for the 'ansible-galaxy collection verify' positional argument. + The positional argument must be a collection name (https://github.com/ansible/ansible/issues/76087). diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index b9b5eca9976..da5ac7f2aa0 100755 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -376,8 +376,8 @@ class GalaxyCLI(CLI): 'found on the server and the installed copy. This does not verify dependencies.') verify_parser.set_defaults(func=self.execute_verify) - verify_parser.add_argument('args', metavar='{0}_name'.format(galaxy_type), nargs='*', help='The collection(s) name or ' - 'path/url to a tar.gz collection artifact. This is mutually exclusive with --requirements-file.') + verify_parser.add_argument('args', metavar='{0}_name'.format(galaxy_type), nargs='*', help='The installed collection(s) name. ' + 'This is mutually exclusive with --requirements-file.') verify_parser.add_argument('-i', '--ignore-errors', dest='ignore_errors', action='store_true', default=False, help='Ignore errors during verification and continue with the next specified collection.') verify_parser.add_argument('--offline', dest='offline', action='store_true', default=False,