casts the bridge id to a str prior to building command (#21805)

This will prevent exception from being raise when calling _vsctl and
extending the cmd with the bridge information
pull/21811/head
Peter Sprygada 8 years ago committed by GitHub
parent 08a752faea
commit 1ef0287854

@ -193,7 +193,7 @@ class OVSBridge(object):
'''Create the bridge'''
cmd = ['add-br', self.bridge]
if self.parent and self.vlan: # Add fake bridge
cmd += [self.parent, self.vlan]
cmd += [self.parent, str(self.vlan)]
if self.set and self.set_opt:
cmd += ["--", "set"]
@ -296,6 +296,7 @@ class OVSBridge(object):
changed = True
except Exception:
raise
earg = get_exception()
self.module.fail_json(msg=str(earg))
# pylint: enable=W0703

Loading…
Cancel
Save