Format URL when updating image props in Glance v1

With Glance v1, there is a formatting error when calling the service.

Story: #2003884
Task: #26746

Change-Id: Ia676c399f3d026b6599fc795988d4ac2c45dafdf
This commit is contained in:
Samuel de Medeiros Queiroz
2018-09-26 18:03:51 -03:00
parent 5b626d157f
commit 3f49aa3ce6

View File

@@ -5023,7 +5023,7 @@ class OpenStackCloud(_normalize.Normalizer):
if not img_props:
return False
self._image_client.put(
'/images/{id}'.format(image.id), headers=img_props)
'/images/{id}'.format(id=image.id), headers=img_props)
self.list_images.invalidate(self)
return True