Add unix socket support

This commit is contained in:
Peter Šurda 2024-04-22 14:51:36 +08:00
parent c40784f6ca
commit 537a7b3365
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -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'