Files
Jack Carter 6f18e2cf5f refactor: move DNS nameserver null-coercion to module layer
Code-review follow-up on bbea38e. Two small cleanups, no behavior change:

- plugins/module_utils/netbird_api.py: revert update_nameserver_group's
  PUT-body construction for `domains` back to the partial-update pattern
  (`if domains is not None`) used by every other update_* method. The
  helper is now a pure HTTP primitive again, so future modules can rely
  on consistent partial-update semantics for this surface.

- plugins/modules/netbird_dns.py: coerce `domains` and `groups` from
  None to [] at the module layer, right before building update_params
  and calling the API helper. This keeps the null-heal intent local to
  the DNS module (where the dashboard-crash reason lives) and applies
  symmetrically to both list fields, closing the asymmetry between
  nsgroup_needs_update (already symmetric) and the PUT body.

Net effect is identical to bbea38e: installer-seeded `domains: null`
still heals to `[]` on apply, the dashboard still loads, the sister
repo's smoke/extended-CRUD assertions still pass. Only the layer at
which the coercion lives has moved.

Coexists cleanly with open PR #33 (fix/strict-name-resolution): both
branches touch roles/configure/tasks/main.yml at non-overlapping hunks.
2026-04-17 18:43:24 +02:00
..
2026-03-24 16:34:41 +01:00
2026-03-26 18:57:00 +01:00
2026-03-24 16:34:41 +01:00