Discussion:
[Ryu-devel] [PATCH] test_vsctl: Strip unexpected double quote
IWASE Yusuke
2017-06-23 01:31:31 UTC
Permalink
This patch removes unexpected double quote around IP address in
OVSDB_SWITCH_ADDR.
e.g.)
NG: tcp:"172.17.0.2":6640
OK: tcp:172.17.0.2:6640

Signed-off-by: IWASE Yusuke <***@gmail.com>
---
ryu/tests/unit/lib/ovs/test_vsctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/tests/unit/lib/ovs/test_vsctl.py b/ryu/tests/unit/lib/ovs/test_vsctl.py
index d32a536..28edf6e 100644
--- a/ryu/tests/unit/lib/ovs/test_vsctl.py
+++ b/ryu/tests/unit/lib/ovs/test_vsctl.py
@@ -83,7 +83,7 @@ class TestVSCtl(unittest.TestCase):
def _docker_inspect_ip_addr(cls, container):
return _run(
'docker inspect --format="{{.NetworkSettings.IPAddress}}" %s' %
- container)[0]
+ container)[0].strip('"')

@classmethod
def _set_up_mn_container(cls):
--
2.7.4
FUJITA Tomonori
2017-06-23 02:47:36 UTC
Permalink
On Fri, 23 Jun 2017 10:31:31 +0900
Post by IWASE Yusuke
This patch removes unexpected double quote around IP address in
OVSDB_SWITCH_ADDR.
e.g.)
NG: tcp:"172.17.0.2":6640
OK: tcp:172.17.0.2:6640
---
ryu/tests/unit/lib/ovs/test_vsctl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Pushed, thanks!

Loading...