'image-show' does not show attributes whose value is 'None'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Wenjun Wang |
Bug Description
When I used cmd "glance image-show <image-uuid>",I can not get attributes whose value is 'None',
+------
| Property | Value |
+------
| checksum | 6bbe6376930f06d
| container_format | bare |
| created_at | 2016-01-
| deleted | False |
| disk_format | iso |
| id | 1c0c80eb-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | win2007_iso |
| owner | 32bfe3124bb2478
| protected | False |
| size | 4489216000 |
| status | active |
| updated_at | 2016-01-
+------
The attribute will be removed whose value is 'None' in function meta of class ImageSerializer,
https:/
user will not know these attributes in this case.
So I suggest to remove the filter for value with 'None'.
I want to get the return values like this:
+------
| Property | Value |
+------
| checksum | 6bbe6376930f06d
| container_format | bare |
| created_at | 2016-01-
| deleted | False |
| deleted_at | None |
| disk_format | iso |
| id | 1c0c80eb-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | win2007_iso |
| owner | 32bfe3124bb2478
| protected | False |
| size | 4489216000 |
| status | active |
| updated_at | 2016-01-
| virtual_size | None |
+------
description: | updated |
Changed in python-glanceclient: | |
assignee: | nobody → Wenjun Wang (wangwenjun) |
affects: | python-glanceclient → glance |
According to your example you get see the two extra fields:
| deleted_at | None |
| virtual_size | None |
What is the benefit of seeing these extra two fields?