mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Cows don't need to display brackets around strings.
This commit is contained in:
parent
016b04dff1
commit
bcac289667
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue