From 56da3825c6171bc64f1579131d5c2f500d09e7ae Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Wed, 24 Apr 2019 14:27:21 -0500 Subject: [PATCH] meraki_content_filtering - Remove redundant API call with get_nets() (#55531) * Remove redundant API call with get_nets() * Add changelog fragment --- .../fragments/meraki_content_filtering-redundant-calls.yml | 2 ++ lib/ansible/modules/network/meraki/meraki_content_filtering.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/meraki_content_filtering-redundant-calls.yml 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)