Browse Source

image list: Add Checksum column

The checksum could potentially be useful for spotting duplicated images or
checking if images with the same name are identical or different.

Closes-Bug: #1602073

Change-Id: Ia0c41970c846d550de14297e18bc738e847e5a3b
changes/70/339170/3
Marc Abramowitz 5 years ago
parent
commit
8bbf30498e
5 changed files with 12 additions and 0 deletions
  1. +2
    -0
      openstackclient/image/v1/image.py
  2. +2
    -0
      openstackclient/image/v2/image.py
  3. +2
    -0
      openstackclient/tests/image/v1/test_image.py
  4. +2
    -0
      openstackclient/tests/image/v2/test_image.py
  5. +4
    -0
      releasenotes/notes/bug_1602073-5deb58deeafbc8be.yaml

+ 2
- 0
openstackclient/image/v1/image.py View File

@ -378,6 +378,7 @@ class ListImage(command.Lister):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'is_public',
'protected',
@ -390,6 +391,7 @@ class ListImage(command.Lister):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'Visibility',
'Protected',


+ 2
- 0
openstackclient/image/v2/image.py View File

@ -490,6 +490,7 @@ class ListImage(command.Lister):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'visibility',
'protected',
@ -502,6 +503,7 @@ class ListImage(command.Lister):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'Visibility',
'Protected',


+ 2
- 0
openstackclient/tests/image/v1/test_image.py View File

@ -363,6 +363,7 @@ class TestImageList(TestImage):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'Visibility',
'Protected',
@ -378,6 +379,7 @@ class TestImageList(TestImage):
'',
'',
'',
'',
'public',
False,
image_fakes.image_owner,


+ 2
- 0
openstackclient/tests/image/v2/test_image.py View File

@ -643,6 +643,7 @@ class TestImageList(TestImage):
'Disk Format',
'Container Format',
'Size',
'Checksum',
'Status',
'Visibility',
'Protected',
@ -658,6 +659,7 @@ class TestImageList(TestImage):
'',
'',
'',
'',
self._image.visibility,
self._image.protected,
self._image.owner,


+ 4
- 0
releasenotes/notes/bug_1602073-5deb58deeafbc8be.yaml View File

@ -0,0 +1,4 @@
---
features:
- Add "Checksum" column to output of "image list --long"
[Bug `1602073 <https://bugs.launchpad.net/bugs/1602073>`_]

Loading…
Cancel
Save