Skip to content

Commit

Permalink
ansible/roles.py: fix colors when called via ansible
Browse files Browse the repository at this point in the history
Asnible colors things, and we don't want them colored.

Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jun 13, 2024
1 parent f31c778 commit b2e7060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ def main():
if args.filter not in req.name:
continue
role = processed_roles[req.name]
print('%-44s --- %22s (Git: %s | Req: %s)' %
(BOLD(role.name), role.state,
print('%s%-44s --- %22s (Git: %s | Req: %s)' %
(RST, BOLD(role.name), role.state,
CYAN(role.current_commit[:8]),
commit_or_any(role.required)))

Expand Down

0 comments on commit b2e7060

Please sign in to comment.