mark properties as deleted if they don't exist on an update
Bug #741171 reported by
Dan Prince
This bug report is a duplicate of:
Bug #725281: No way to remove a custom image property.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Dan Prince |
Bug Description
When using the glance client to update an image the metadata (aka 'properties') items not marked as deleted if they no longer exist.
As an example. If I were to created an image with properties:
'properties': {'distro': 'Ubuntu 10.04 LTS', 'arch': 'x86_64'}
And then update the image with properties:
'properties': {'arch': 'x86_64'}
I would expect a subsequent call to get the image detail to return only {'arch': 'x86_64'}. This is not currently what happens.
Related branches
lp:~dan-prince/glance/property_delete
- Rick Harris (community): Approve
- Jay Pipes (community): Approve
-
Diff: 62 lines (+36/-0)2 files modifiedglance/registry/db/api.py (+13/-0)
tests/functional/test_curl_api.py (+23/-0)
Changed in glance: | |
status: | New → In Progress |
assignee: | nobody → Dan Prince (dan-prince) |
To post a comment you must log in.