1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Cows don't need to display brackets around strings.

This commit is contained in:
Michael DeHaan 2013-04-27 11:50:53 -04:00
parent 016b04dff1
commit bcac289667

View file

@ -200,6 +200,10 @@ def regular_generic_msg(hostname, result, oneline, caption):
def banner(msg): def banner(msg):
if cowsay: if cowsay:
if msg.find(": [") != -1:
msg = msg.replace("[","")
if msg.endswith("]"):
msg = msg[:-1]
runcmd = [cowsay,"-W", "60"] runcmd = [cowsay,"-W", "60"]
if noncow: if noncow:
runcmd.append('-f') runcmd.append('-f')