From 49d48c6a58a169e0333bed7da015da194b657ec8 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 22 Mar 2021 15:27:11 +0000 Subject: [PATCH] Fix prerun role-name message (#1486) --- src/ansiblelint/prerun.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ansiblelint/prerun.py b/src/ansiblelint/prerun.py index 6ea0db8609..3ec4b9df61 100644 --- a/src/ansiblelint/prerun.py +++ b/src/ansiblelint/prerun.py @@ -170,18 +170,18 @@ def _install_galaxy_role() -> None: if not re.match(r"[a-z0-9][a-z0-9_]+\.[a-z][a-z0-9_]+$", fqrn): msg = ( """\ - Computed fully qualified role name of %s does not follow current galaxy requirements. - Please edit meta/main.yml and assure we can correctly determine full role name: +Computed fully qualified role name of %s does not follow current galaxy requirements. +Please edit meta/main.yml and assure we can correctly determine full role name: - galaxy_info: - role_name: my_name # if absent directory name hosting role is used instead - namespace: my_galaxy_namespace # if absent, author is used instead +galaxy_info: +role_name: my_name # if absent directory name hosting role is used instead +namespace: my_galaxy_namespace # if absent, author is used instead - Namespace: https://galaxy.ansible.com/docs/contributing/namespaces.html#galaxy-namespace-limitations - Role: https://galaxy.ansible.com/docs/contributing/creating_role.html#role-names +Namespace: https://galaxy.ansible.com/docs/contributing/namespaces.html#galaxy-namespace-limitations +Role: https://galaxy.ansible.com/docs/contributing/creating_role.html#role-names - As an alternative, you can add 'role-name' to either skip_list or warn_list. - """ +As an alternative, you can add 'role-name' to either skip_list or warn_list. +""" % fqrn ) if 'role-name' in options.warn_list: