mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 20:54:24 -07:00
[PR #5765/dc531b18 backport][stable-6] ModuleHelper - lax handling of conflicting output (#5775)
ModuleHelper - lax handling of conflicting output (#5765)
* ModuleHelper - lax handling of conflicting output
* add changelog fragment
* only create _var when really needed
* adjust changelog
* Update changelogs/fragments/5765-mh-lax-output-conflict.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit dc531b183d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
d95a821d5b
commit
8bc5494ad5
5 changed files with 52 additions and 13 deletions
9
changelogs/fragments/5765-mh-lax-output-conflict.yml
Normal file
9
changelogs/fragments/5765-mh-lax-output-conflict.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
breaking_changes:
|
||||
- >
|
||||
ModuleHelper module utils - when the module sets output variables named ``msg``, ``exception``, ``output``, ``vars``, or ``changed``,
|
||||
the actual output will prefix those names with ``_`` (underscore symbol) only when they clash with output variables generated by ModuleHelper
|
||||
itself, which only occurs when handling exceptions. Please note that this breaking
|
||||
change does not require a new major release since before this release, it was not possible
|
||||
to add such variables to the output
|
||||
`due to a bug <https://github.com/ansible-collections/community.general/pull/5755>`__
|
||||
(https://github.com/ansible-collections/community.general/pull/5765).
|
Loading…
Add table
Add a link
Reference in a new issue