From 537a7b3365c266823e75d0964ba7849fd79a4980 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 22 Apr 2024 14:51:36 +0800 Subject: [PATCH] Add unix socket support --- collection/plugins/modules/device.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collection/plugins/modules/device.py b/collection/plugins/modules/device.py index 0a18709..ab88819 100644 --- a/collection/plugins/modules/device.py +++ b/collection/plugins/modules/device.py @@ -82,6 +82,11 @@ from xml.etree.ElementTree import parse from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.urls import fetch_url, url_argument_spec +try: + import requests_unitsocket +except ImportError: + pass + SYNCTHING_API_URI = "/rest/config/devices" if platform.system() == 'Windows': DEFAULT_ST_CONFIG_LOCATION = '%localappdata%/Syncthing/config.xml'