diff options
| author | Zuul <zuul@review.opendev.org> | 2019-04-22 18:56:45 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2019-04-22 18:56:45 +0000 |
| commit | 8dc5360a0cd56497802c6d9aa8cd10443892c351 (patch) | |
| tree | ed79308ac90161ae344f160acaef12ae04e67fd5 | |
| parent | 5f3c1736059881cbfb221412a2e0f4c12a0b23a3 (diff) | |
| parent | 44061cfab2dc74dca054546af955d12e13d6e6d2 (diff) | |
| download | python-cinderclient-8dc5360a0cd56497802c6d9aa8cd10443892c351.tar.gz | |
Merge "Add support for backup user ID"
| -rw-r--r-- | cinderclient/api_versions.py | 2 | ||||
| -rw-r--r-- | cinderclient/v3/shell.py | 3 | ||||
| -rw-r--r-- | releasenotes/notes/backup-user-id-059ccea871893a0b.yaml | 5 |
3 files changed, 9 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: diff --git a/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml b/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml new file mode 100644 index 0000000..abafaa7 --- /dev/null +++ b/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml @@ -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. |
