From 95f2491ed89ac99b0d8bd006b4a13cbeb1eb96ce Mon Sep 17 00:00:00 2001 From: "Michael S. Pedersen" Date: Tue, 3 Dec 2019 11:38:32 +0000 Subject: NFVBENCH-153 Add support for python3 JIRA: NFVBENCH-153 Done using 2to3-3.6 with additional changes to fix data parsing and testing (tox) Signed-off-by: Michael S. Pedersen Change-Id: I242902f800da543d780507828c9bd1fbf409da6d --- nfvbench/compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nfvbench/compute.py') diff --git a/nfvbench/compute.py b/nfvbench/compute.py index 84e3774..f6f179d 100644 --- a/nfvbench/compute.py +++ b/nfvbench/compute.py @@ -24,7 +24,7 @@ except ImportError: import keystoneauth1 import novaclient -from log import LOG +from .log import LOG class Compute(object): @@ -50,7 +50,7 @@ class Compute(object): retry = 0 try: # check image is file/url based. - with open(image_file) as f_image: + with open(image_file, 'rb') as f_image: img = self.glance_client.images.create(name=str(final_image_name), disk_format="qcow2", container_format="bare", -- cgit 1.2.3-korg