mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Cows don't need to display brackets around strings.
This commit is contained in:
@@ -200,6 +200,10 @@ def regular_generic_msg(hostname, result, oneline, caption):
|
||||
def banner(msg):
|
||||
|
||||
if cowsay:
|
||||
if msg.find(": [") != -1:
|
||||
msg = msg.replace("[","")
|
||||
if msg.endswith("]"):
|
||||
msg = msg[:-1]
|
||||
runcmd = [cowsay,"-W", "60"]
|
||||
if noncow:
|
||||
runcmd.append('-f')
|
||||
|
||||
Reference in New Issue
Block a user