From 5454c562e9efcff73e650a92b2ccf34ece82766a Mon Sep 17 00:00:00 2001 From: David Stygstra Date: Mon, 5 Dec 2016 17:29:46 -0500 Subject: [PATCH] Fix #3410 (#3411) A port with the same name as the bridge is implicitly created for every bridge, but it doesn't show in in `ovs-vsctl list-ports BRIDGE`. --- lib/ansible/modules/extras/network/openvswitch_port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/network/openvswitch_port.py b/lib/ansible/modules/extras/network/openvswitch_port.py index 0939a71341e..26542161a60 100644 --- a/lib/ansible/modules/extras/network/openvswitch_port.py +++ b/lib/ansible/modules/extras/network/openvswitch_port.py @@ -159,7 +159,7 @@ class OVSPort(object): if rtc != 0: self.module.fail_json(msg=err) - return any(port.rstrip() == self.port for port in out.split('\n')) + return any(port.rstrip() == self.port for port in out.split('\n')) or self.port == self.bridge def set(self, set_opt): """ Set attributes on a port. """