summaryrefslogtreecommitdiff
path: root/changelogs/fragments/fix_jinja_native_async.yml
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2023-04-17 16:23:03 +0200
committerGitHub <noreply@github.com>2023-04-17 09:23:03 -0500
commitd5a36b8734077de524c1bb090d6179278c1187d6 (patch)
tree76d1754665b4e17983ae4f7b974f5465cc637d90 /changelogs/fragments/fix_jinja_native_async.yml
parent8616d68ea92e12ee66ba9fe8cf59343a6f76a151 (diff)
downloadansible-d5a36b8734077de524c1bb090d6179278c1187d6.tar.gz
Change ansible_job_id format (#79951) (#80282)
* Change ansible_job_id format ...to be something that does not resemble float or other type which value could be changed by literal_eval that jinja2_native uses. Specifically the format of '%d.%d' is converted from str to float and then back to float which may result in truncating the number resulting in the job not being found because the job id does not exist. (cherry picked from commit 09e0fb3516a793009a1b2ac8bfcc758016a10c6d)
Diffstat (limited to 'changelogs/fragments/fix_jinja_native_async.yml')
-rw-r--r--changelogs/fragments/fix_jinja_native_async.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/fix_jinja_native_async.yml b/changelogs/fragments/fix_jinja_native_async.yml
new file mode 100644
index 0000000000..5072400390
--- /dev/null
+++ b/changelogs/fragments/fix_jinja_native_async.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - "jinja2_native - fix intermittent 'could not find job' failures when a value of ``ansible_job_id`` from a result of an async task was inadvertently changed during execution; to prevent this a format of ``ansible_job_id`` was changed."