-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #5755/b49bf081 backport][stable-4] ModuleHelper - fix bug when ad…
…justing conflicting output (#5756) ModuleHelper - fix bug when adjusting conflicting output (#5755) * ModuleHelper - fix bug when adjusting conflicting output * add changelog fragment * remove commented test code (cherry picked from commit b49bf08) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
- Loading branch information
1 parent
c5c8dec
commit 4ea084c
Showing
5 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- ModuleHelper - fix bug when adjusting the name of reserved output variables (https://github.com/ansible-collections/community.general/pull/5755). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tests/integration/targets/module_helper/tasks/msimple_output_conflict.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2023, Alexei Znamensky | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
- name: test msimple (set a=80) | ||
msimple: | ||
a: 80 | ||
register: simple1 | ||
|
||
- name: assert simple1 | ||
assert: | ||
that: | ||
- simple1.a == 80 | ||
- simple1.abc == "abc" | ||
- simple1 is not changed | ||
- simple1.value is none | ||
|
||
- name: test msimple 2 | ||
msimple: | ||
a: 80 | ||
m: a message in a bottle | ||
register: simple2 | ||
|
||
- name: assert simple2 | ||
assert: | ||
that: | ||
- simple1.a == 80 | ||
- simple1.abc == "abc" | ||
- simple1 is not changed | ||
- simple1.value is none | ||
- 'simple2._msg == "a message in a bottle"' |