mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-27 19:39:13 -07:00
meraki - Unchanged requests now return the original data (#53576)
* Unchanged requests now return the original data * Add changelog fragment * Add integration tests for returned data for meraki_network * Add integration tests for returned data * Improve idempoetent output - Make MX l3 rules always show default rule - Add integration tests * Add integration tests for returned data on meraki_network * Improved idempotency in a few modules and improved tests
This commit is contained in:
parent
a3c3fd91f8
commit
2a187f362a
29 changed files with 167 additions and 96 deletions
|
@ -363,6 +363,8 @@ def main():
|
|||
path = meraki.construct_path('update', net_id=net_id, custom={'route_id': meraki.params['route_id']})
|
||||
meraki.result['data'] = meraki.request(path, method="PUT", payload=json.dumps(payload))
|
||||
meraki.result['changed'] = True
|
||||
else:
|
||||
meraki.result['data'] = existing_route
|
||||
else:
|
||||
if module.check_mode:
|
||||
meraki.result['data'] = payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue