]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow display_name for v2 snapshot-update
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Tue, 17 Sep 2013 04:29:51 +0000 (13:29 +0900)
committerKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Tue, 17 Sep 2013 05:07:50 +0000 (14:07 +0900)
commit622f10e87fda5dc439d43543216d953920079282
treef0e70cb4bfa57cd2633a03af5be8ec6cec3e3a27
parent2a725ef15d0d1b0e3c82fcabf65850afce7cc26e
Allow display_name for v2 snapshot-update

According to the comment in the source code, the snapshot-update of
v2 would be able to allow either "name" or "display_name" parameter.
And if both paramters are specified, "name" parameter is effective
over "display_name" like "description" parameter.
However "display_name" parameter is ignored now, because cinder writes
over empty dict(update_dict['display_name']).

This patch fixes the problem.

Fixes bug #1226398

Change-Id: Icd48556a26b9346f73b7c1b82ffbcdd469c4d28d
cinder/api/v2/snapshots.py