diff --git a/changelogs/fragments/meraki_content_filtering-redundant-calls.yml b/changelogs/fragments/meraki_content_filtering-redundant-calls.yml new file mode 100644 index 0000000000..0e679bd84e --- /dev/null +++ b/changelogs/fragments/meraki_content_filtering-redundant-calls.yml @@ -0,0 +1,2 @@ +bugfixes: +- "meraki_static_route - Module would make unnecessary API calls to Meraki when ``net_id`` is specified in task." diff --git a/lib/ansible/modules/network/meraki/meraki_content_filtering.py b/lib/ansible/modules/network/meraki/meraki_content_filtering.py index 7676d654a3..048fd51912 100644 --- a/lib/ansible/modules/network/meraki/meraki_content_filtering.py +++ b/lib/ansible/modules/network/meraki/meraki_content_filtering.py @@ -172,8 +172,6 @@ def main(): org_id = meraki.params['org_id'] if not org_id: org_id = meraki.get_org_id(meraki.params['org_name']) - nets = meraki.get_nets(org_id=org_id) - net_id = None if net_id is None: nets = meraki.get_nets(org_id=org_id)