Health check skip

This commit is contained in:
SebClem 2024-09-14 16:26:31 +02:00
parent edca331b7b
commit 06c4d10ca2
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -216,6 +216,10 @@ class ActionModule(ActionBase):
continue continue
upstream = loaded_data.get("upstream") upstream = loaded_data.get("upstream")
upstream_config = loaded_data.get("upstream_config") upstream_config = loaded_data.get("upstream_config")
if not uptime_raw_config.get('skip', False):
health_uri = "/" + uptime_raw_config.get("endpoint", "")
else:
health_uri = None
if state == "present": if state == "present":
results['sites_config'].append({ results['sites_config'].append({
@ -225,7 +229,7 @@ class ActionModule(ActionBase):
"protected": protected, "protected": protected,
"whitelist_local": whitelist_local, "whitelist_local": whitelist_local,
"tls_cert_dir": tls_cert_dir, "tls_cert_dir": tls_cert_dir,
"health_uri": "/" + uptime_raw_config.get("endpoint", "") "health_uri": health_uri
}) })
if not dns.get("skip", False): if not dns.get("skip", False):