diff options
author | wangxiyuan <wangxiyuan@huawei.com> | 2017-02-10 16:39:33 +0800 |
---|---|---|
committer | wangxiyuan <wangxiyuan@huawei.com> | 2017-05-25 10:01:10 +0800 |
commit | c349b318ae63dea2ce2b159f8ab3f02fafe59596 (patch) | |
tree | 61e5e8a7a74d720e936c89db5b52f81816b0fbeb /cinderclient/shell_utils.py | |
parent | 58c60e787f7b5a0fcc856f1114e5a2fe03beb364 (diff) | |
download | python-cinderclient-c349b318ae63dea2ce2b159f8ab3f02fafe59596.tar.gz |
Support list-volume for group show
V3.25 support query groups with volumes, this patch add the client
support.
Partial-Implements: blueprint improvement-to-query-consistency-group-detail
Partial-Bug: #1663474
Change-Id: Ic0d86b9265f295877eebca97ff450f5efd73b184
Diffstat (limited to 'cinderclient/shell_utils.py')
-rw-r--r-- | cinderclient/shell_utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cinderclient/shell_utils.py b/cinderclient/shell_utils.py index e386558..7bd96e5 100644 --- a/cinderclient/shell_utils.py +++ b/cinderclient/shell_utils.py @@ -85,9 +85,10 @@ def find_consistencygroup(cs, consistencygroup): return utils.find_resource(cs.consistencygroups, consistencygroup) -def find_group(cs, group): +def find_group(cs, group, **kwargs): """Gets a group by name or ID.""" - return utils.find_resource(cs.groups, group) + kwargs['is_group'] = True + return utils.find_resource(cs.groups, group, **kwargs) def find_cgsnapshot(cs, cgsnapshot): |