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:
Sean McGinnis 2019-04-17 09:59:44 -05:00
parent b843a168ef
commit 44061cfab2
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
3 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
# key is a deprecated version and value is an alternative version.
DEPRECATED_VERSIONS = {"1": "2"}
DEPRECATED_VERSION = "2.0"
MAX_VERSION = "3.55"
MAX_VERSION = "3.56"
MIN_VERSION = "3.0"
_SUBSTITUTIONS = {}

View File

@ -181,6 +181,9 @@ def do_backup_list(cs, args):
shell_utils.translate_volume_snapshot_keys(backups)
columns = ['ID', 'Volume ID', 'Status', 'Name', 'Size', 'Object Count',
'Container']
if cs.api_version >= api_versions.APIVersion('3.56'):
columns.append('User ID')
if args.sort:
sortby_index = None
else:

View 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.