summaryrefslogtreecommitdiff
path: root/cinderclient/shell_utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-14 18:45:36 +0000
committerGerrit Code Review <review@openstack.org>2017-06-14 18:45:36 +0000
commit22c386fcec78f37fa99e03937417a69546e53777 (patch)
tree428decad98634cb6bb39f0302d356fc5a56c9bf7 /cinderclient/shell_utils.py
parent5961dbc398d690998291eb3f39029506ed8494ae (diff)
parentc349b318ae63dea2ce2b159f8ab3f02fafe59596 (diff)
downloadpython-cinderclient-22c386fcec78f37fa99e03937417a69546e53777.tar.gz
Merge "Support list-volume for group show"
Diffstat (limited to 'cinderclient/shell_utils.py')
-rw-r--r--cinderclient/shell_utils.py5
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):