dont verify ssl cert on ha replication

This commit is contained in:
Oscar Krause 2023-02-28 11:21:52 +01:00
parent de28d000e7
commit 9a370f817a

View File

@ -42,7 +42,7 @@ def ha_replicate(logger: "logging.Logger", ha_replicate: str, ha_role: str, vers
'sync_timestamp': datetime.utcnow().isoformat(),
}
r = httpx.put(f'https://{ha_replicate}/-/ha/replicate', json=data)
r = httpx.put(f'https://{ha_replicate}/-/ha/replicate', json=data, verify=False)
if r.status_code == 202:
logger.info(f'Successfully replicated this node ({ha_role}) to "{ha_replicate}".')
else: