]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use of metadata id instead of metadata name
authorSheel Rana <ranasheel2000@gmail.com>
Wed, 3 Feb 2016 18:53:16 +0000 (00:23 +0530)
committerSheel Rana <ranasheel2000@gmail.com>
Sat, 13 Feb 2016 20:28:29 +0000 (20:28 +0000)
commit7d8369099180bb65449685755b0f69f1378bc8ae
tree0781844510e3a0ce4c3dd51b2953e1b498cfdbfd
parent4cfed22bf8494fe54df49f6c11a0ee3f94625864
Use of metadata id instead of metadata name

If multiple image-metadata entries are present with same name
but different cases, 'image-metadata unset' command deletes all
of them irrespective of case.

For ex, "image-metadata unset abc=123" will delete all image-metadata
entries with name abc, ABC, Abc etc.

This is fixed by using id instead of name to fetch image-metadata
during 'image-metadata unset' command execution flow.

Closes-Bug: #1538418

Change-Id: I9fb29667964a4180af822b811345fa1148dbcd66
cinder/db/sqlalchemy/api.py
cinder/tests/unit/test_db_api.py