Skip to content

Commit

Permalink
Fix prerun role-name message (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Mar 22, 2021
1 parent 74ed65b commit 49d48c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/ansiblelint/prerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49d48c6

Please sign in to comment.