Fix return vallue

This commit is contained in:
SebClem 2024-09-13 18:46:32 +02:00
parent f3846975de
commit 480a5d246c
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -176,7 +176,7 @@ class ActionModule(ActionBase):
"""
results = {
"dns_hostnames": dict(), # { provider: [ { hostname:"", domain:"", state: "", target: "" } ] }
"backend_config": [], # {site: "xx.fr", upstream: "", upstream_config: [], protected: true, whitelist_local: true, domain: ""}
"proxy_config": [], # {site: "xx.fr", upstream: "", upstream_config: [], protected: true, whitelist_local: true, domain: ""}
"uptime_config": [] # [{ name:"", url: "", protected: True, state: "" }]
}
failed = False
@ -214,7 +214,7 @@ class ActionModule(ActionBase):
upstream_config = loaded_data.get("upstream_config")
if state == "present":
results['backend_config'].append({
results['proxy_config'].append({
"site": main_hostname,
"upstream": upstream,
"upstream_config": upstream_config,
@ -256,7 +256,7 @@ class ActionModule(ActionBase):
this_upstream_config = host.get("upstream_config")
if this_state == "present":
results['backend_config'].append({
results['proxy_config'].append({
"site": full_domain,
"upstream": upstream,
"upstream_config": this_upstream_config,