diff options
author | Matthew Fennell <matthew@fennell.dev> | 2025-08-11 07:58:37 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2025-08-11 07:58:37 +0100 |
commit | 0a16c9cd4ac6849e638643f6e8fbfd5fafc2a697 (patch) | |
tree | f6e103853d3c8e81f605b6ead2ce0064f4a2aa43 /files/hosts.j2 | |
parent | 0ab318fcd287cfca56dc220811019db7a7373a25 (diff) |
Set domain_with_ds to "" if no parent domain
domain_with_ds is checked against the empty string when checking whether
we should define ds_subname.
When no parent_domain was found, we setting domain_with_ds to None,
which in Ansible 10 was (correctly) failing the domain_with_ds != ""
check. However, in Ansible 12, it now fails that check, meaning that
Ansible tried to evaluate ds_subname even when domain_with_ds was None,
resulting in a type conversion failure.
Therefore, make sure that domain_with_ds is always a string, even if
parent_domain is undefined, and use the empty string to represent this,
as expected in the playbook itself.
Diffstat (limited to 'files/hosts.j2')
0 files changed, 0 insertions, 0 deletions