Fix full_domain if state != present
This commit is contained in:
parent
a6c381772c
commit
188a850035
@ -249,9 +249,10 @@ class ActionModule(ActionBase):
|
|||||||
this_protected = host.get('protected', protected)
|
this_protected = host.get('protected', protected)
|
||||||
this_state = host.get('state', state)
|
this_state = host.get('state', state)
|
||||||
this_uptime_raw_config = host.get("uptime", dict())
|
this_uptime_raw_config = host.get("uptime", dict())
|
||||||
|
full_domain = '{0}.{1}'.format(host.get("hostname"), this_domain) if host.get("hostname") else this_domain
|
||||||
|
|
||||||
if this_state == "present":
|
if this_state == "present":
|
||||||
full_domain = '{0}.{1}'.format(host.get("hostname"), this_domain) if host.get("hostname") else this_domain
|
|
||||||
results['domain_maping'].append('{0} {2}'.format(full_domain, this_domain, backend.get("name")))
|
results['domain_maping'].append('{0} {2}'.format(full_domain, this_domain, backend.get("name")))
|
||||||
if this_protected:
|
if this_protected:
|
||||||
results['protected_domain'].append(full_domain)
|
results['protected_domain'].append(full_domain)
|
||||||
|
Loading…
Reference in New Issue
Block a user