diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2019-04-17 09:59:44 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2019-04-17 09:59:44 -0500 |
commit | 44061cfab2dc74dca054546af955d12e13d6e6d2 (patch) | |
tree | 1b2fe83dff704cdb99b57ab30efd5491da9f99a5 /cinderclient | |
parent | b843a168efc9261a12ebe322fe701ef355474874 (diff) | |
download | python-cinderclient-44061cfab2dc74dca054546af955d12e13d6e6d2.tar.gz |
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>
Diffstat (limited to 'cinderclient')
-rw-r--r-- | cinderclient/api_versions.py | 2 | ||||
-rw-r--r-- | cinderclient/v3/shell.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cinderclient/api_versions.py b/cinderclient/api_versions.py index cb7b54b..647ff2f 100644 --- a/cinderclient/api_versions.py +++ b/cinderclient/api_versions.py @@ -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 = {} diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py index bc79860..fefec60 100644 --- a/cinderclient/v3/shell.py +++ b/cinderclient/v3/shell.py @@ -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: |