Skip to content

Commit

Permalink
Fix install galaxy role warning message (#1484)
Browse files Browse the repository at this point in the history
Fix the msg value to use '%s' and remove extra ',' to get a
properly formatted message and the '%s' sequence replaced.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
  • Loading branch information
apatard authored Mar 19, 2021
1 parent ce88e0b commit 74ed65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansiblelint/prerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def _install_galaxy_role() -> None:
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.
""",
fqrn,
"""
% fqrn
)
if 'role-name' in options.warn_list:
_logger.warning(msg)
Expand Down

0 comments on commit 74ed65b

Please sign in to comment.