mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
topotest: json_cmp_result split error lines
When the API user wanted to show newlines we have to break them manually to get the propper format.
This commit is contained in:
parent
bc2872fd17
commit
2db5888df5
@ -51,7 +51,8 @@ class json_cmp_result(object):
|
|||||||
|
|
||||||
def add_error(self, error):
|
def add_error(self, error):
|
||||||
"Append error message to the result"
|
"Append error message to the result"
|
||||||
self.errors.append(error)
|
for line in error.splitlines():
|
||||||
|
self.errors.append(line)
|
||||||
|
|
||||||
def has_errors(self):
|
def has_errors(self):
|
||||||
"Returns True if there were errors, otherwise False."
|
"Returns True if there were errors, otherwise False."
|
||||||
|
Loading…
Reference in New Issue
Block a user