-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2.14] don't ignore templated _raw_params that k=v parser failed to p…
…arse (#79913) (#79964) * don't ignore templated _raw_params that k=v parser failed to parse (#79913) fixes #79862 (cherry picked from commit e1d298e) * backport test change to runme.sh
- Loading branch information
1 parent
c0395c4
commit a082726
Showing
5 changed files
with
28 additions
and
4 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: | ||
- TaskExecutor - don't ignore templated _raw_params that k=v parser failed to parse (https://github.com/ansible/ansible/issues/79862) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
# make sure tasks with an undefined variable in the name are gracefully handled | ||
- name: "Task name with undefined variable: {{ not_defined }}" | ||
debug: | ||
msg: Hello | ||
|
||
- name: ensure malformed raw_params on arbitrary actions are not ignored | ||
debug: | ||
garbage {{"with a template"}} | ||
ignore_errors: true | ||
register: bad_templated_raw_param | ||
|
||
- assert: | ||
that: | ||
- bad_templated_raw_param is failed | ||
- | | ||
"invalid or malformed argument: 'garbage with a template'" in bad_templated_raw_param.msg |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
ansible-playbook playbook.yml "$@" |
This file was deleted.
Oops, something went wrong.