summaryrefslogtreecommitdiff
path: root/scripts/generate-dns-http-queries.py
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-01-02 13:24:33 +0000
committerMatthew Fennell <matthew@fennell.dev>2026-01-02 13:24:33 +0000
commit32bada629f7b2371c91177af834769c9435f3229 (patch)
tree86288bd34af299fee7c7d19a0e8cbbc538123eef /scripts/generate-dns-http-queries.py
parentc1a5a58d20488272bf0bcc4c4dc2ca11a8ea8fdb (diff)
Derive is_transport_server from transport count
I have two different kinds of servers - transport servers (which connect to legacy networks and have s2s disabled) and non-transport servers (which are XMPP-only and have s2s enabled). I previously had an is_transport_server boolean defined for each host in the inventory - however, this is duplicated information that can be derived from the length of the transports value (which lists the legacy networks to transport to). Transport servers have a non-empty transports list, while non-transport servers do not define the variable at all. So, handle this case in the playbook by deriving an empty list if the value is not present.
Diffstat (limited to 'scripts/generate-dns-http-queries.py')
0 files changed, 0 insertions, 0 deletions