diff options
author | Lee Yarwood <lyarwood@redhat.com> | 2021-08-17 12:06:25 +0100 |
---|---|---|
committer | Lee Yarwood <lyarwood@redhat.com> | 2021-08-24 19:10:41 +0100 |
commit | cfa172c4fd75cae1c6cbed31def48f28eafbb89b (patch) | |
tree | 414b816526ef4d10a866da2220defdf2de5e25f9 /novaclient/v2/shell.py | |
parent | bff8d4137057c9bc37436b8df29d86a3c2584938 (diff) | |
download | python-novaclient-cfa172c4fd75cae1c6cbed31def48f28eafbb89b.tar.gz |
Microversion 2.89 - os-volume_attachments
Depends-On: https://review.opendev.org/c/openstack/nova/+/804275
Change-Id: If6275dbd3795047c111ac507a12b034e60029df8
Diffstat (limited to 'novaclient/v2/shell.py')
-rw-r--r-- | novaclient/v2/shell.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index eb0315fd..e47fcbc0 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -2800,6 +2800,10 @@ def do_volume_attachments(cs, args): _translate_volume_attachments_keys(volumes) # Microversion >= 2.70 returns the tag value. fields = ['ID', 'DEVICE', 'SERVER ID', 'VOLUME ID'] + if cs.api_version >= api_versions.APIVersion('2.89'): + fields.remove('ID') + fields.append('ATTACHMENT ID') + fields.append('BDM UUID') if cs.api_version >= api_versions.APIVersion('2.70'): fields.append('TAG') # Microversion >= 2.79 returns the delete_on_termination value. |