Adapt python-tempestconf to python3

As part of running tripleo standalone jobs at fedora28 we found that
parts of tempestconf were not adapted to python3, this review just add
needed stuff to run tripleo-fedora-28-standalone job there.

Story: https://tree.taiga.io/project/tripleo-ci-board/task/478?kanban-status=1447276

Change-Id: I850ff56c4ced2f3cbab05bb8c3b120e112a2acdd
This commit is contained in:
Quique Llorente 2018-12-04 15:51:06 +01:00
parent a99b846475
commit a2568a5598
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ class ImageService(VersionedService):
else:
visibility = 'public'
with open(path) as data:
with open(path, 'rb') as data:
image = self.client.create_image(name=name,
disk_format=self.disk_format,
container_format='bare',

View File

@ -228,7 +228,7 @@ class Services(object):
horizon.configure_horizon(self._conf)
for service, codename in C.SERVICE_NAMES.iteritems():
for service, codename in C.SERVICE_NAMES.items():
# ceilometer is still transitioning from metering to telemetry
if service == 'telemetry' and self.is_service('metering'):
service = 'metering'