Add support for backup user ID
Backup user_id was added with microversion 3.56 but never added to the client. Added in Rocky with I3ffb544ef3ee65276cee8b1e870d524fd0e57085. Change-Id: Ib9a4159db0f8af599dcf8315334de4f859be077e Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
b843a168ef
commit
44061cfab2
@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
|
|||||||
# key is a deprecated version and value is an alternative version.
|
# key is a deprecated version and value is an alternative version.
|
||||||
DEPRECATED_VERSIONS = {"1": "2"}
|
DEPRECATED_VERSIONS = {"1": "2"}
|
||||||
DEPRECATED_VERSION = "2.0"
|
DEPRECATED_VERSION = "2.0"
|
||||||
MAX_VERSION = "3.55"
|
MAX_VERSION = "3.56"
|
||||||
MIN_VERSION = "3.0"
|
MIN_VERSION = "3.0"
|
||||||
|
|
||||||
_SUBSTITUTIONS = {}
|
_SUBSTITUTIONS = {}
|
||||||
|
@ -181,6 +181,9 @@ def do_backup_list(cs, args):
|
|||||||
shell_utils.translate_volume_snapshot_keys(backups)
|
shell_utils.translate_volume_snapshot_keys(backups)
|
||||||
columns = ['ID', 'Volume ID', 'Status', 'Name', 'Size', 'Object Count',
|
columns = ['ID', 'Volume ID', 'Status', 'Name', 'Size', 'Object Count',
|
||||||
'Container']
|
'Container']
|
||||||
|
if cs.api_version >= api_versions.APIVersion('3.56'):
|
||||||
|
columns.append('User ID')
|
||||||
|
|
||||||
if args.sort:
|
if args.sort:
|
||||||
sortby_index = None
|
sortby_index = None
|
||||||
else:
|
else:
|
||||||
|
5
releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
Normal file
5
releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Starting with API microversion 3.56, ``backup-list`` and ``backup-show``
|
||||||
|
will include the ``User ID`` denoting the user that created the backup.
|
Loading…
x
Reference in New Issue
Block a user