Skip to content

Commit 8bbf304

Browse files
committed
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
1 parent 5a21eb2 commit 8bbf304

5 files changed

Lines changed: 12 additions & 0 deletions

File tree

openstackclient/image/v1/image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def take_action(self, parsed_args):
378378
'Disk Format',
379379
'Container Format',
380380
'Size',
381+
'Checksum',
381382
'Status',
382383
'is_public',
383384
'protected',
@@ -390,6 +391,7 @@ def take_action(self, parsed_args):
390391
'Disk Format',
391392
'Container Format',
392393
'Size',
394+
'Checksum',
393395
'Status',
394396
'Visibility',
395397
'Protected',

openstackclient/image/v2/image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ def take_action(self, parsed_args):
490490
'Disk Format',
491491
'Container Format',
492492
'Size',
493+
'Checksum',
493494
'Status',
494495
'visibility',
495496
'protected',
@@ -502,6 +503,7 @@ def take_action(self, parsed_args):
502503
'Disk Format',
503504
'Container Format',
504505
'Size',
506+
'Checksum',
505507
'Status',
506508
'Visibility',
507509
'Protected',

openstackclient/tests/image/v1/test_image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ def test_image_list_long_option(self):
363363
'Disk Format',
364364
'Container Format',
365365
'Size',
366+
'Checksum',
366367
'Status',
367368
'Visibility',
368369
'Protected',
@@ -378,6 +379,7 @@ def test_image_list_long_option(self):
378379
'',
379380
'',
380381
'',
382+
'',
381383
'public',
382384
False,
383385
image_fakes.image_owner,

openstackclient/tests/image/v2/test_image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ def test_image_list_long_option(self):
643643
'Disk Format',
644644
'Container Format',
645645
'Size',
646+
'Checksum',
646647
'Status',
647648
'Visibility',
648649
'Protected',
@@ -658,6 +659,7 @@ def test_image_list_long_option(self):
658659
'',
659660
'',
660661
'',
662+
'',
661663
self._image.visibility,
662664
self._image.protected,
663665
self._image.owner,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- Add "Checksum" column to output of "image list --long"
4+
[Bug `1602073 <https://bugs.launchpad.net/bugs/1602073>`_]

0 commit comments

Comments
 (0)