Skip to content

Commit 6ff3a92

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Show Created At column for volume backups in v3"
2 parents 8f56d3f + 695d025 commit 6ff3a92

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

openstackclient/tests/unit/volume/v3/test_volume_backup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ class TestBackupList(volume_fakes.TestVolume):
333333
'Status',
334334
'Size',
335335
'Incremental',
336+
'Created At',
336337
)
337338
columns_long = columns + (
338339
'Availability Zone',
@@ -350,6 +351,7 @@ class TestBackupList(volume_fakes.TestVolume):
350351
b.status,
351352
b.size,
352353
b.is_incremental,
354+
b.created_at,
353355
)
354356
)
355357
data_long = []
@@ -362,6 +364,7 @@ class TestBackupList(volume_fakes.TestVolume):
362364
b.status,
363365
b.size,
364366
b.is_incremental,
367+
b.created_at,
365368
b.availability_zone,
366369
volume_backup.VolumeIdColumn(b.volume_id),
367370
b.container,

openstackclient/volume/v3/volume_backup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ def take_action(self, parsed_args):
305305
'status',
306306
'size',
307307
'is_incremental',
308+
'created_at',
308309
)
309310
column_headers = (
310311
'ID',
@@ -313,6 +314,7 @@ def take_action(self, parsed_args):
313314
'Status',
314315
'Size',
315316
'Incremental',
317+
'Created At',
316318
)
317319
if parsed_args.long:
318320
columns += ('availability_zone', 'volume_id', 'container')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Listing volume backups now shows the created_at column when
5+
volume v3 API is used.

0 commit comments

Comments
 (0)