summaryrefslogtreecommitdiff
path: root/cinderclient/v3/shell.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-02-19 17:14:51 +0000
committerGerrit Code Review <review@openstack.org>2020-02-19 17:14:51 +0000
commit61fb7b4452d0d5d42cf5d5e569e5d25e06627fcc (patch)
tree529cea0e958c0cd100042d251a10359001a83e4f /cinderclient/v3/shell.py
parent17555ff0f8e3e838cdce3972b8eba44dcbb8e5d0 (diff)
parent522e5a938bb478ec190e741a0d47eb16f8c4af00 (diff)
downloadpython-cinderclient-stable/queens.tar.gz
Merge "Add missed 'Server ID' output in attachment-list" into stable/queensqueens-eolstable/queens
Diffstat (limited to 'cinderclient/v3/shell.py')
-rw-r--r--cinderclient/v3/shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
index 05bdbef..698a0b0 100644
--- a/cinderclient/v3/shell.py
+++ b/cinderclient/v3/shell.py
@@ -2069,6 +2069,8 @@ def do_attachment_list(cs, args):
marker=args.marker,
limit=args.limit,
sort=args.sort)
+ for attachment in attachments:
+ setattr(attachment, 'server_id', getattr(attachment, 'instance', None))
columns = ['ID', 'Volume ID', 'Status', 'Server ID']
if args.sort:
sortby_index = None