Merge "Show Created At column for volume backups"

This commit is contained in:
Zuul 2024-08-09 12:20:45 +00:00 committed by Gerrit Code Review
commit d385bd1e03
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
features:
- |
Listing volume backups now shows the created_at column.

View File

@ -235,6 +235,7 @@ class TestBackupList(volume_fakes.TestVolume):
'Status',
'Size',
'Incremental',
'Created At',
)
columns_long = columns + (
'Availability Zone',
@ -252,6 +253,7 @@ class TestBackupList(volume_fakes.TestVolume):
b.status,
b.size,
b.is_incremental,
b.created_at,
)
)
data_long = []
@ -264,6 +266,7 @@ class TestBackupList(volume_fakes.TestVolume):
b.status,
b.size,
b.is_incremental,
b.created_at,
b.availability_zone,
volume_backup.VolumeIdColumn(b.volume_id),
b.container,

View File

@ -247,6 +247,7 @@ class ListVolumeBackup(command.Lister):
'status',
'size',
'is_incremental',
'created_at',
)
column_headers = (
'ID',
@ -255,6 +256,7 @@ class ListVolumeBackup(command.Lister):
'Status',
'Size',
'Incremental',
'Created At',
)
if parsed_args.long:
columns += ('availability_zone', 'volume_id', 'container')