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:
parent
a99b846475
commit
a2568a5598
@ -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',
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user