commit 45c109556d633b95aa24860dc6f03042ca62d180
Author: Fei Long Wang <email address hidden>
Date: Mon Sep 8 00:19:25 2014 +1200
Glance API V2 can't recognize parameter 'id'
Based on current implement, API V2 is using **id** in image schema,
but using **image_id** for most of the internal functions as key
word arguments. So user will got a key error if using:
Reviewed: https:/ /review. openstack. org/119612 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=45c109556d6 33b95aa24860dc6 f03042ca62d180
Committed: https:/
Submitter: Jenkins
Branch: master
commit 45c109556d633b9 5aa24860dc6f030 42ca62d180
Author: Fei Long Wang <email address hidden>
Date: Mon Sep 8 00:19:25 2014 +1200
Glance API V2 can't recognize parameter 'id'
Based on current implement, API V2 is using **id** in image schema,
but using **image_id** for most of the internal functions as key
word arguments. So user will got a key error if using:
glance --os-image- api-version 2 image-create --id <id>
This patch will map 'id' to 'image_id' in RequestDeserializer and
add an unit test case fo the change.
Closes-Bug: 1366515
Change-Id: I4c72881a7ada72 8307e806776426b 42cf4cf0993