From beaf6b6058fe616bdffa2a19f0caada9e573a2c7 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 13 Dec 2022 16:38:25 -0500 Subject: [PATCH 1/2] Fill in rest of ask_tags handling for WFJT module --- awx_collection/plugins/modules/workflow_job_template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx_collection/plugins/modules/workflow_job_template.py b/awx_collection/plugins/modules/workflow_job_template.py index 09635175d6..e1667b3b21 100644 --- a/awx_collection/plugins/modules/workflow_job_template.py +++ b/awx_collection/plugins/modules/workflow_job_template.py @@ -789,6 +789,7 @@ def main(): allow_simultaneous=dict(type='bool'), ask_variables_on_launch=dict(type='bool'), ask_labels_on_launch=dict(type='bool', aliases=['ask_labels']), + ask_tags_on_launch=dict(type='bool'), ask_skip_tags_on_launch=dict(type='bool', aliases=['ask_skip_tags']), inventory=dict(), limit=dict(), @@ -873,6 +874,7 @@ def main(): 'ask_limit_on_launch', 'ask_variables_on_launch', 'ask_labels_on_launch', + 'ask_tags_on_launch', 'ask_skip_tags_on_launch', 'webhook_service', 'job_tags', From 51f8e362dc8e21febebe5a1dd4144dbd91be44c1 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 14 Dec 2022 09:10:15 -0500 Subject: [PATCH 2/2] Add tags prompt to integration test --- .../integration/targets/workflow_job_template/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx_collection/tests/integration/targets/workflow_job_template/tasks/main.yml b/awx_collection/tests/integration/targets/workflow_job_template/tasks/main.yml index 27de3947d7..1477193e6c 100644 --- a/awx_collection/tests/integration/targets/workflow_job_template/tasks/main.yml +++ b/awx_collection/tests/integration/targets/workflow_job_template/tasks/main.yml @@ -245,6 +245,7 @@ ask_inventory_on_launch: true ask_scm_branch_on_launch: true ask_limit_on_launch: true + ask_tags_on_launch: true ask_variables_on_launch: true register: result @@ -263,6 +264,7 @@ ask_inventory_on_launch: true ask_scm_branch_on_launch: true ask_limit_on_launch: true + ask_tags_on_launch: true ask_variables_on_launch: true register: bad_label_results ignore_errors: true @@ -278,6 +280,7 @@ ask_inventory_on_launch: false ask_scm_branch_on_launch: false ask_limit_on_launch: false + ask_tags_on_launch: false ask_variables_on_launch: false state: present