Skip to content

Commit

Permalink
src/ansiblelint/_prerun.py: Fix _install_galaxy_role message.
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 committed Mar 19, 2021
1 parent 470e3c5 commit 58bfd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansiblelint/_prerun.py
Expand Up @@ -180,8 +180,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 58bfd34

Please sign in to comment.