From 2ee97660225ea3a03794ef3fba80963186c71b94 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Wed, 8 May 2024 00:25:36 +0530 Subject: [PATCH] test - get devices --- collection/plugins/modules/folder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collection/plugins/modules/folder.py b/collection/plugins/modules/folder.py index 07e9ab7..29d8737 100644 --- a/collection/plugins/modules/folder.py +++ b/collection/plugins/modules/folder.py @@ -209,8 +209,9 @@ def run_module(): # api_url='/rest/config/devices', # argument_spec={}, # ) - devices = [] #devices_module.get_call() - existing_device_ids = [device['deviceID'] for device in devices] + module.api_url = '/rest/config/devices' + devices_list = module.get_call() + existing_device_ids = [device['deviceID'] for device in devices_list] self_id = module.result['response']['x-syncthing-id'] if folder_exists: # exists but maybe needs changing