Skip to content

Commit 7eaddf4

Browse files
Remove leading and trailing whitespaces when reading veos file (#506)
1 parent 5757038 commit 7eaddf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ansible/linkstate/scripts/ptf_proxy.py

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def parse_veos(vms):
126126
all = fp.read()
127127
rows = all.split('\n')
128128
for r in rows:
129+
r = r.strip()
129130
if r == '':
130131
continue
131132
if not r.startswith('VM'):

0 commit comments

Comments
 (0)