This commit is contained in:
Swapnil 2024-05-08 00:03:36 +05:30
parent 07bbc73497
commit ffb0d8d5ff
Signed by: swapnil
GPG Key ID: 58029C48BB100574
1 changed files with 5 additions and 9 deletions

View File

@ -205,16 +205,12 @@ def run_module():
else:
module.delete_call(target=folder['id'])
else:
module.result = {
"changed": False,
"response": None,
}
devices_module = SyncthingModule(
api_url='/rest/config/devices',
)
devices = devices_module.get_call()
# devices_module = SyncthingModule(
# api_url='/rest/config/devices',
# )
devices = [] #devices_module.get_call()
existing_device_ids = [device['deviceID'] for device in devices]
self_id = devices_module.result['response']['x-syncthing-id']
self_id = folder.result['response']['x-syncthing-id']
if folder_exists: # exists but maybe needs changing
if module.check_mode: