From 65035e2149dde928d793d3bc36aa2a0b30e44862 Mon Sep 17 00:00:00 2001 From: Alicia Cozine <879121+acozine@users.noreply.github.com> Date: Mon, 22 Apr 2019 09:56:55 -0500 Subject: [PATCH] Fixed wrong variable specification format in examples (#55252) (#55543) Signed-off-by: Hideki Saito (cherry picked from commit 83f20e0ea0a5fa46329c68bdcf13cf5dd7a452eb) --- changelogs/fragments/tower_job_wait-wrong_examples.yml | 2 ++ .../web_infrastructure/ansible_tower/tower_job_launch.py | 4 ++-- .../web_infrastructure/ansible_tower/tower_job_wait.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/tower_job_wait-wrong_examples.yml diff --git a/changelogs/fragments/tower_job_wait-wrong_examples.yml b/changelogs/fragments/tower_job_wait-wrong_examples.yml new file mode 100644 index 00000000000..07f29fe57af --- /dev/null +++ b/changelogs/fragments/tower_job_wait-wrong_examples.yml @@ -0,0 +1,2 @@ +bugfixes: + - tower_job_wait - Fixed wrong variable specification in examples diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py index 87e9b2be22d..dbae9e9399e 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py @@ -66,7 +66,7 @@ EXAMPLES = ''' - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 # Launch job template with inventory and credential for prompt on launch @@ -78,7 +78,7 @@ EXAMPLES = ''' register: job - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 ''' diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py index 42bbbb68eee..d512a07565c 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py @@ -49,7 +49,7 @@ EXAMPLES = ''' - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 '''