Skip to content

Commit d385bd1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Show Created At column for volume backups"
2 parents f2cf938 + 7eccd40 commit d385bd1

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- |
4+
Listing volume backups now shows the created_at column.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ class TestBackupList(volume_fakes.TestVolume):
235235
'Status',
236236
'Size',
237237
'Incremental',
238+
'Created At',
238239
)
239240
columns_long = columns + (
240241
'Availability Zone',
@@ -252,6 +253,7 @@ class TestBackupList(volume_fakes.TestVolume):
252253
b.status,
253254
b.size,
254255
b.is_incremental,
256+
b.created_at,
255257
)
256258
)
257259
data_long = []
@@ -264,6 +266,7 @@ class TestBackupList(volume_fakes.TestVolume):
264266
b.status,
265267
b.size,
266268
b.is_incremental,
269+
b.created_at,
267270
b.availability_zone,
268271
volume_backup.VolumeIdColumn(b.volume_id),
269272
b.container,

openstackclient/volume/v2/volume_backup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def take_action(self, parsed_args):
247247
'status',
248248
'size',
249249
'is_incremental',
250+
'created_at',
250251
)
251252
column_headers = (
252253
'ID',
@@ -255,6 +256,7 @@ def take_action(self, parsed_args):
255256
'Status',
256257
'Size',
257258
'Incremental',
259+
'Created At',
258260
)
259261
if parsed_args.long:
260262
columns += ('availability_zone', 'volume_id', 'container')

0 commit comments

Comments
 (0)