Fixed multiline bug introduced in 925cbb2297
(brown paper bag, please)
This commit is contained in:
parent
e59b1a8c6e
commit
2e4754e1ac
|
@ -405,7 +405,10 @@ class MonitoringPlugin(object):
|
|||
if type(multiline) == str:
|
||||
out += '\n' + multiline.replace('|', ' ')
|
||||
elif type(multiline) in [list, tuple]:
|
||||
out += '\n' + '\n'.join([item for sublist in multiline for item in sublist]).replace('|', ' ')
|
||||
if type(multiline[0]) in [list, tuple]:
|
||||
out += '\n' + '\n'.join([item for sublist in multiline for item in sublist]).replace('|', ' ')
|
||||
else:
|
||||
out += '\n' + '\n'.join(multiline).replace('|', ' ')
|
||||
|
||||
# Check if there's perfdata
|
||||
if performancedata:
|
||||
|
|
Loading…
Reference in a new issue