From: Rafael Zalamena Date: Mon, 27 Aug 2018 16:48:45 +0000 (-0300) Subject: lib: fix `ip4_route_zebra` header removal code X-Git-Tag: frr-7.1-dev~151^2~26 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0eff58207eef2335b092380a0ffb7b12c3e07d91;p=mirror%2Ffrr.git lib: fix `ip4_route_zebra` header removal code The `strip` function is actually a method of the String object. Signed-off-by: Rafael Zalamena --- diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index d1985b008e..ab3e5d34e0 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -428,8 +428,7 @@ def ip4_route_zebra(node, vrf_name=None): lines = output.splitlines() header_found = False - while lines and (not strip(lines[0]) - or not header_found): + while lines and (not lines[0].strip() or not header_found): if '> - selected route' in lines[0]: header_found = True lines = lines[1:]