Merge "fix: Set bool as string for bootable and multiattach"

This commit is contained in:
Zuul 2022-08-24 11:23:55 +00:00 committed by Gerrit Code Review
commit eee3fe81dc

View File

@ -592,16 +592,14 @@ async def list_volumes(
else:
sort = ",".join(sort_keys)
# If bootable is false, it is ineffective, due to existed issue of community
# https://bugs.launchpad.net/python-cinderclient/+bug/1925737
search_opts = {
"with_count": True,
"name": name,
"multiattach": multiattach,
"multiattach": str(multiattach) if multiattach is not None else multiattach,
"status": status,
"all_tenants": all_projects,
"project_id": project_id,
"bootable": bootable,
"bootable": str(bootable) if bootable is not None else bootable,
"id": uuid,
}
# if not is_admin, cinder will ignore the all_projects query param.