Remove the repeated calls
The create function of GlanceImageService has called
the staticmethod _translate_to_glance. So when we call
create function, we don't need to call _translate_to_glance
again. Just remove it now.
@@ -1308,8 +1308,7 @@ class API(base.Base):
# volume glance metadata table
pass
- recv_metadata = self.image_service.create(
- context, self.image_service._translate_to_glance(metadata))
+ recv_metadata = self.image_service.create(context, metadata)
except Exception:
# NOTE(geguileo): To mimic behavior before conditional_update we
# will rollback status if image create fails
