Skip to content

Commit

Permalink
lib: fix ip4_route_zebra header removal code
Browse files Browse the repository at this point in the history
The `strip` function is actually a method of the String object.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
  • Loading branch information
rzalamena committed Aug 27, 2018
1 parent 841e597 commit 44b9e76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/topotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 44b9e76

Please sign in to comment.