mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
blue on black, tears on a river, push on a shove, it don't mean much
(make colorized playbook runs not suck on black terminals)
This commit is contained in:
@@ -31,9 +31,7 @@ from ansible.color import ANSIBLE_COLOR, stringc
|
||||
|
||||
def colorize(lead, num, color):
|
||||
""" Print 'lead' = 'num' in 'color' """
|
||||
if num == 0:
|
||||
color='black';
|
||||
if ANSIBLE_COLOR:
|
||||
if num != 0 and ANSIBLE_COLOR:
|
||||
return "%s%s%-15s" % (stringc(lead, color), stringc("=", color), stringc(str(num), color))
|
||||
else:
|
||||
return "%s=%-4s" % (lead, str(num))
|
||||
|
||||
Reference in New Issue
Block a user