diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2023-02-09 15:49:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 15:49:07 +0100 |
commit | 09e0fb3516a793009a1b2ac8bfcc758016a10c6d (patch) | |
tree | 1907e24d2676c55db840b8bc320064f40c322543 /test/integration/targets/async_fail | |
parent | don't ignore templated _raw_params that k=v parser failed to parse (#79913) (diff) | |
download | ansible-09e0fb3516a793009a1b2ac8bfcc758016a10c6d.tar.xz ansible-09e0fb3516a793009a1b2ac8bfcc758016a10c6d.zip |
Change ansible_job_id format (#79951)
* 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.
Diffstat (limited to 'test/integration/targets/async_fail')
-rw-r--r-- | test/integration/targets/async_fail/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/async_fail/tasks/main.yml b/test/integration/targets/async_fail/tasks/main.yml index 40f72e105d..24cea1d581 100644 --- a/test/integration/targets/async_fail/tasks/main.yml +++ b/test/integration/targets/async_fail/tasks/main.yml @@ -28,7 +28,7 @@ - name: validate that by the end of the retry interval, we succeeded assert: that: - - async_result.ansible_job_id is match('\d+\.\d+') + - async_result.ansible_job_id is match('j\d+\.\d+') - async_result.finished == 1 - async_result is finished - async_result is changed |