Merge "Parameter filters may be None, which cannot be called with **" into stable/xena

This commit is contained in:
Zuul 2023-10-16 14:16:06 +00:00 committed by Gerrit Code Review
commit 52871949e3

View File

@ -166,6 +166,7 @@ class AddressGroupDbMixin(ag_ext.AddressGroupPluginBase):
def get_address_groups(self, context, filters=None, fields=None, def get_address_groups(self, context, filters=None, fields=None,
sorts=None, limit=None, marker=None, sorts=None, limit=None, marker=None,
page_reverse=False): page_reverse=False):
filters = filters or {}
pager = base_obj.Pager(sorts, limit, page_reverse, marker) pager = base_obj.Pager(sorts, limit, page_reverse, marker)
address_groups = ag_obj.AddressGroup.get_objects( address_groups = ag_obj.AddressGroup.get_objects(
context, _pager=pager, **filters) context, _pager=pager, **filters)