mirror of https://github.com/ansible/ansible.git
[stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663)
* Backward-compatible None handling in template concat and argspec str (#85652) * templating coerces None to empty string on multi-node result * avoid simple cases of embedded `None` in multi-node string concatenated template results ala <=2.18 * single-node template results preserve NoneType * add None->empty str equivalency to argspec validation * fix integration tests * remove conversion error message check from apt_repository test * remove error message check on `None` value for required str argspec in roles_arg_spec test (now logically-equivalent to empty string) * explanatory comment for None->empty str coalesce (cherry picked from commitpull/85691/heade3c9908679) * eliminate None template nodes in _flatten_nodes (#85676) * defers value or concat choice until Nones are gone * fixes None -> empty string for TemplateModule cases * add tests (cherry picked from commit5345ac9911)
parent
e24bc689a3
commit
2dcd35b692
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- templating - Multi-node template results coerce embedded ``None`` nodes to empty string (instead of rendering literal ``None`` to the output).
|
||||
- argspec validation - The ``str`` argspec type treats ``None`` values as empty string for better consistency with pre-2.19 templating conversions.
|
||||
Loading…
Reference in New Issue