Comment 2 for bug 1366515

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/119612
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=45c109556d633b95aa24860dc6f03042ca62d180
Submitter: Jenkins
Branch: master

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:

    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: I4c72881a7ada728307e806776426b42cf4cf0993