From 99e003045cc2f987329e7432c44bf049fe725819 Mon Sep 17 00:00:00 2001 From: Pavel Shirshov Date: Mon, 12 Mar 2018 17:08:06 -0700 Subject: [PATCH] Remove leading and trailing whitespaces when reading veos file --- ansible/linkstate/scripts/ptf_proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/linkstate/scripts/ptf_proxy.py b/ansible/linkstate/scripts/ptf_proxy.py index 8f33373fb52..ba285d482dd 100644 --- a/ansible/linkstate/scripts/ptf_proxy.py +++ b/ansible/linkstate/scripts/ptf_proxy.py @@ -126,6 +126,7 @@ def parse_veos(vms): all = fp.read() rows = all.split('\n') for r in rows: + r = r.strip() if r == '': continue if not r.startswith('VM'):