summaryrefslogtreecommitdiff
path: root/devstack/files/hooks/qemu.py
diff options
context:
space:
mode:
Diffstat (limited to 'devstack/files/hooks/qemu.py')
-rwxr-xr-xdevstack/files/hooks/qemu.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/devstack/files/hooks/qemu.py b/devstack/files/hooks/qemu.py
index 872d5e101..75ecba9c7 100755
--- a/devstack/files/hooks/qemu.py
+++ b/devstack/files/hooks/qemu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -tt
+#!/usr/bin/python3
# Copyright (c) 2017 Intel Corporation
#
@@ -45,10 +45,9 @@ def main():
action = sys.argv[2]
if action == "started":
- interfaces = str(
- subprocess.check_output(
- ['ip', 'link', 'show', 'type', 'macvtap']
- )).split("\n")
+ interfaces = subprocess.check_output(
+ ['ip', 'link', 'show', 'type', 'macvtap']
+ ).decode().split("\n")
for iface_line in interfaces:
if 'macvtap' in iface_line:
iface_string = iface_line.split('@')