summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Stygstra <david.stygstra@gmail.com>2016-12-05 23:29:46 +0100
committerMatt Clay <matt@mystile.com>2016-12-08 17:35:17 +0100
commit5454c562e9efcff73e650a92b2ccf34ece82766a (patch)
tree447fce6857d7da9d3bf0c6aed767671806a209c9 /lib
parentUpdate the status codes to look for (#2120) (diff)
downloadansible-5454c562e9efcff73e650a92b2ccf34ece82766a.tar.xz
ansible-5454c562e9efcff73e650a92b2ccf34ece82766a.zip
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`.
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/modules/extras/network/openvswitch_port.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/extras/network/openvswitch_port.py b/lib/ansible/modules/extras/network/openvswitch_port.py
index 0939a71341..26542161a6 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. """