Commit bcac2896 by Michael DeHaan

Cows don't need to display brackets around strings.

parent 016b04df
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment