From 83f20e0ea0a5fa46329c68bdcf13cf5dd7a452eb Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Tue, 16 Apr 2019 05:18:11 +0900 Subject: [PATCH] Fixed wrong variable specification format in examples (#55252) Signed-off-by: Hideki Saito --- 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 0000000000..07f29fe57a --- /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 87e9b2be22..dbae9e9399 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 42bbbb68ee..d512a07565 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 '''