diff --git a/lib/ansible/modules/network/meraki/meraki_device.py b/lib/ansible/modules/network/meraki/meraki_device.py index ad5d939d5a7..c4f9587acdb 100644 --- a/lib/ansible/modules/network/meraki/meraki_device.py +++ b/lib/ansible/modules/network/meraki/meraki_device.py @@ -265,7 +265,7 @@ def main(): meraki.params['follow_redirects'] = 'all' query_urls = {'device': '/networks/{net_id}/devices'} - query_org_urls = {'device': '/organizations/{org_id}/deviceStatuses'} + query_org_urls = {'device': '/organizations/{org_id}/inventory'} query_device_urls = {'device': '/networks/{net_id}/devices/'} claim_device_urls = {'device': '/networks/{net_id}/devices/claim'} bind_org_urls = {'device': '/organizations/{org_id}/claim'} diff --git a/test/integration/targets/meraki_device/tasks/main.yml b/test/integration/targets/meraki_device/tasks/main.yml index 0a831e24213..3750244b7fb 100644 --- a/test/integration/targets/meraki_device/tasks/main.yml +++ b/test/integration/targets/meraki_device/tasks/main.yml @@ -195,7 +195,7 @@ - update_device_idempotent.changed == False always: - - name: Remove a device + - name: Remove a device from a network meraki_device: auth_key: '{{auth_key}}' org_name: '{{test_org_name}}'