Before it was giving a 200 response. Since the request was received fine
but still has to process things, this is a more correct response. In
addition this is more consistent with other OpenStack project create
rest api calls.
Change-Id: I4f29cda7638c257c9cb5be7a5edf2bc4c48626d8
res = [entity_maker(context, snapshot) for snapshot in limited_list]
return {'snapshots': res}
+ @wsgi.response(202)
@wsgi.serializers(xml=SnapshotTemplate)
def create(self, req, body):
"""Creates a new snapshot."""
return image_uuid
+ @wsgi.response(202)
@wsgi.serializers(xml=VolumeTemplate)
@wsgi.deserializers(xml=CreateDeserializer)
def create(self, req, body):