Fixes baremetal interface attach 25/40325/1
authorTim Rozet <trozet@redhat.com>
Sun, 27 Aug 2017 19:15:14 +0000 (15:15 -0400)
committerTim Rozet <trozet@redhat.com>
Sun, 27 Aug 2017 19:15:14 +0000 (15:15 -0400)
Change-Id: If0e501c218b1ea981caa255b5e217b5118b772b0
Signed-off-by: Tim Rozet <trozet@redhat.com>
apex/network/jumphost.py

index 81562c7..1afcea7 100644 (file)
@@ -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: