Fix return vallue
This commit is contained in:
parent
f3846975de
commit
480a5d246c
@ -176,7 +176,7 @@ class ActionModule(ActionBase):
|
|||||||
"""
|
"""
|
||||||
results = {
|
results = {
|
||||||
"dns_hostnames": dict(), # { provider: [ { hostname:"", domain:"", state: "", target: "" } ] }
|
"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: "" }]
|
"uptime_config": [] # [{ name:"", url: "", protected: True, state: "" }]
|
||||||
}
|
}
|
||||||
failed = False
|
failed = False
|
||||||
@ -214,7 +214,7 @@ class ActionModule(ActionBase):
|
|||||||
upstream_config = loaded_data.get("upstream_config")
|
upstream_config = loaded_data.get("upstream_config")
|
||||||
|
|
||||||
if state == "present":
|
if state == "present":
|
||||||
results['backend_config'].append({
|
results['proxy_config'].append({
|
||||||
"site": main_hostname,
|
"site": main_hostname,
|
||||||
"upstream": upstream,
|
"upstream": upstream,
|
||||||
"upstream_config": upstream_config,
|
"upstream_config": upstream_config,
|
||||||
@ -256,7 +256,7 @@ class ActionModule(ActionBase):
|
|||||||
this_upstream_config = host.get("upstream_config")
|
this_upstream_config = host.get("upstream_config")
|
||||||
|
|
||||||
if this_state == "present":
|
if this_state == "present":
|
||||||
results['backend_config'].append({
|
results['proxy_config'].append({
|
||||||
"site": full_domain,
|
"site": full_domain,
|
||||||
"upstream": upstream,
|
"upstream": upstream,
|
||||||
"upstream_config": this_upstream_config,
|
"upstream_config": this_upstream_config,
|
||||||
|
Loading…
Reference in New Issue
Block a user