From 480a5d246c4236a989c3d030b0c9c311f5121477 Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 13 Sep 2024 18:46:32 +0200 Subject: [PATCH] Fix return vallue --- plugins/action/load_caddy_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/action/load_caddy_config.py b/plugins/action/load_caddy_config.py index a560ac8..6946f9c 100644 --- a/plugins/action/load_caddy_config.py +++ b/plugins/action/load_caddy_config.py @@ -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,