Before schema validation patch [1] got merged, it was allowed to
pass "ref" as string value (ref:"string") in request body of
snapshot_manage create API but after schema changes, it is
returning 400 error.
This patch fixes this issue by allowing user to pass "ref" parameter
as string.
Note: In case user uses python-cinderclient to manage snapshot, it
always passes "ref" parameter as object (dict).
Reviewed: https:/ /review. openstack. org/534075 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=38976a5b931 6ba37123d04d13b 0dd7dca7f2d1fe
Committed: https:/
Submitter: Zuul
Branch: master
commit 38976a5b9316ba3 7123d04d13b0dd7 dca7f2d1fe
Author: Neha Alhat <email address hidden>
Date: Mon Jan 15 19:31:15 2018 +0530
Fix BadRequest for 'ref' as string value
Before schema validation patch [1] got merged, it was allowed to
pass "ref" as string value (ref:"string") in request body of
snapshot_manage create API but after schema changes, it is
returning 400 error.
This patch fixes this issue by allowing user to pass "ref" parameter
as string.
Note: In case user uses python-cinderclient to manage snapshot, it
always passes "ref" parameter as object (dict).
Change-Id: I6464eacf9f970c bcc1429a50bd59d 59faf262bc6
Closes-Bug: #1743338