summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-08-27 15:15:14 -0400
committerTim Rozet <trozet@redhat.com>2017-08-27 15:15:14 -0400
commit002537a8dd9dde4f488e2be75f0f69ea43b500ba (patch)
tree69e829f1d4cad22e0b918faad8c1c77b89213029
parent3990dbe40603eaf97a3a01ab6abba763510bb96c (diff)
Fixes baremetal interface attach
Change-Id: If0e501c218b1ea981caa255b5e217b5118b772b0 Signed-off-by: Tim Rozet <trozet@redhat.com>
-rw-r--r--apex/network/jumphost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/network/jumphost.py b/apex/network/jumphost.py
index 81562c7a..1afcea72 100644
--- a/apex/network/jumphost.py
+++ b/apex/network/jumphost.py
@@ -90,7 +90,7 @@ def attach_interface_to_ovs(bridge, interface, network):
try:
output = subprocess.check_output(['ovs-vsctl', 'list-ports', bridge],
stderr=subprocess.STDOUT)
- if bridge in output:
+ if interface in output.decode('utf-8'):
logging.debug("Interface already attached to bridge")
return
except subprocess.CalledProcessError as e: