diff options
| author | wangxiyuan <wangxiyuan@huawei.com> | 2017-03-09 09:25:32 +0800 |
|---|---|---|
| committer | wangxiyuan <wangxiyuan@huawei.com> | 2017-03-14 15:44:39 +0800 |
| commit | 3b60eba9aa022a5f5a7b84ce236626f31493485b (patch) | |
| tree | 8d92ff2c2daf751c2d81efc2da5d81628061ba4b /cinderclient/v3 | |
| parent | 1aabb4b0fd574f98bc04ec55f56272aa144595c2 (diff) | |
| download | python-cinderclient-3b60eba9aa022a5f5a7b84ce236626f31493485b.tar.gz | |
Fix all_tenants doesn't work for group list
all_tenants is forgotten to pass by group list.
This patch fixed it.
Change-Id: I419430e929038c35747c59600be83f2e2d084802
Closes-bug: #1671293
Diffstat (limited to 'cinderclient/v3')
| -rw-r--r-- | cinderclient/v3/shell.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py index 81c021c..899bcaa 100644 --- a/cinderclient/v3/shell.py +++ b/cinderclient/v3/shell.py @@ -753,11 +753,13 @@ def do_manageable_list(cs, args): nargs='?', type=int, const=1, - default=0, + default=utils.env('ALL_TENANTS', default=0), help='Shows details for all tenants. Admin only.') def do_group_list(cs, args): """Lists all groups.""" - groups = cs.groups.list() + search_opts = {'all_tenants': args.all_tenants} + + groups = cs.groups.list(search_opts=search_opts) columns = ['ID', 'Status', 'Name'] utils.print_list(groups, columns) |
