Fix hostname

This commit is contained in:
SebClem 2024-09-13 18:53:23 +02:00
parent 480a5d246c
commit 7323cbdd72
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -215,7 +215,7 @@ class ActionModule(ActionBase):
if state == "present": if state == "present":
results['proxy_config'].append({ results['proxy_config'].append({
"site": main_hostname, "site": '{0}.{1}'.format(main_hostname, domain),
"upstream": upstream, "upstream": upstream,
"upstream_config": upstream_config, "upstream_config": upstream_config,
"protected": protected, "protected": protected,
@ -228,7 +228,7 @@ class ActionModule(ActionBase):
results['dns_hostnames'].update({ dns_provider: []}) results['dns_hostnames'].update({ dns_provider: []})
results['dns_hostnames'][dns_provider].append({ results['dns_hostnames'][dns_provider].append({
"hostname": '{0}.{1}'.format(main_hostname, domain), "hostname": main_hostname,
"domain": domain, "domain": domain,
"target": dns_target, "target": dns_target,
"state": state, "state": state,