Show Created At column for volume backups
The ``volume backup list`` command does not show the created_at column for backups which doesn't really help the end-user since a critical part of a backup is knowing when it was taken, and fast if there is a rush doing recovery by restoring a volume from a backup. Change-Id: I8d8a7f36c468c9faa2c2c47bfa9ba9e1ca5b9858
This commit is contained in:
parent
5e5b89f906
commit
7eccd403c7
openstackclient
releasenotes/notes
tests/unit/volume/v2
volume/v2
4
openstackclient/releasenotes/notes/volume-backup-created-at-list-b49ec893ae1f6b0d.yaml
Normal file
4
openstackclient/releasenotes/notes/volume-backup-created-at-list-b49ec893ae1f6b0d.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Listing volume backups now shows the created_at column.
|
@ -359,6 +359,7 @@ class TestBackupList(TestBackup):
|
|||||||
'Status',
|
'Status',
|
||||||
'Size',
|
'Size',
|
||||||
'Incremental',
|
'Incremental',
|
||||||
|
'Created At',
|
||||||
)
|
)
|
||||||
columns_long = columns + (
|
columns_long = columns + (
|
||||||
'Availability Zone',
|
'Availability Zone',
|
||||||
@ -376,6 +377,7 @@ class TestBackupList(TestBackup):
|
|||||||
b.status,
|
b.status,
|
||||||
b.size,
|
b.size,
|
||||||
b.is_incremental,
|
b.is_incremental,
|
||||||
|
b.created_at,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
data_long = []
|
data_long = []
|
||||||
@ -388,6 +390,7 @@ class TestBackupList(TestBackup):
|
|||||||
b.status,
|
b.status,
|
||||||
b.size,
|
b.size,
|
||||||
b.is_incremental,
|
b.is_incremental,
|
||||||
|
b.created_at,
|
||||||
b.availability_zone,
|
b.availability_zone,
|
||||||
volume_backup.VolumeIdColumn(b.volume_id),
|
volume_backup.VolumeIdColumn(b.volume_id),
|
||||||
b.container,
|
b.container,
|
||||||
|
@ -305,6 +305,7 @@ class ListVolumeBackup(command.Lister):
|
|||||||
'status',
|
'status',
|
||||||
'size',
|
'size',
|
||||||
'is_incremental',
|
'is_incremental',
|
||||||
|
'created_at',
|
||||||
)
|
)
|
||||||
column_headers = (
|
column_headers = (
|
||||||
'ID',
|
'ID',
|
||||||
@ -313,6 +314,7 @@ class ListVolumeBackup(command.Lister):
|
|||||||
'Status',
|
'Status',
|
||||||
'Size',
|
'Size',
|
||||||
'Incremental',
|
'Incremental',
|
||||||
|
'Created At',
|
||||||
)
|
)
|
||||||
if parsed_args.long:
|
if parsed_args.long:
|
||||||
columns += ('availability_zone', 'volume_id', 'container')
|
columns += ('availability_zone', 'volume_id', 'container')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user