Merge "Honour all_tenants in consistency group list"

This commit is contained in:
Zuul 2024-02-16 16:29:29 +00:00 committed by Gerrit Code Review
commit 9720298611

View File

@ -1975,7 +1975,9 @@ def do_unmanage(cs, args):
help='Shows details for all tenants. Admin only.')
def do_consisgroup_list(cs, args):
"""Lists all consistency groups."""
consistencygroups = cs.consistencygroups.list()
search_opts = {'all_tenants': args.all_tenants}
consistencygroups = cs.consistencygroups.list(search_opts=search_opts)
columns = ['ID', 'Status', 'Name']
shell_utils.print_list(consistencygroups, columns)