Code Review
/
nfvbench.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NFVBENCH-153 Add support for python3
[nfvbench.git]
/
nfvbench
/
compute.py
diff --git
a/nfvbench/compute.py
b/nfvbench/compute.py
index
84e3774
..
f6f179d
100644
(file)
--- a/
nfvbench/compute.py
+++ b/
nfvbench/compute.py
@@
-24,7
+24,7
@@
except ImportError:
import keystoneauth1
import novaclient
import keystoneauth1
import novaclient
-from log import LOG
+from
.
log import LOG
class Compute(object):
class Compute(object):
@@
-50,7
+50,7
@@
class Compute(object):
retry = 0
try:
# check image is file/url based.
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",
img = self.glance_client.images.create(name=str(final_image_name),
disk_format="qcow2",
container_format="bare",