diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-14 18:45:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-14 18:45:36 +0000 |
commit | 22c386fcec78f37fa99e03937417a69546e53777 (patch) | |
tree | 428decad98634cb6bb39f0302d356fc5a56c9bf7 /cinderclient/shell_utils.py | |
parent | 5961dbc398d690998291eb3f39029506ed8494ae (diff) | |
parent | c349b318ae63dea2ce2b159f8ab3f02fafe59596 (diff) | |
download | python-cinderclient-22c386fcec78f37fa99e03937417a69546e53777.tar.gz |
Merge "Support list-volume for group show"
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 949f7f7..4cb676b 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): |