Skip to content

Commit 0d0c5df

Browse files
Shorten label on some loops to show name instead of entire json block (#1002)
* Fix loop label in controller_execution_environments * Shorten label of job template async status The current label of the step to wait for the async job templates to complete shows the full JSON output of the job var, which is very verbose and can be especially long when a survey is included. Shorten the output so it only shows the name of the job template, very similar to the task that manages controller job templates * Loop labels to name of object * Add changelog fragments --------- Co-authored-by: Sean Sullivan <[email protected]>
1 parent d356068 commit 0d0c5df

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- Update loop label to only show name of credential type instead of entire json object
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- Update loop label to only show name of job template instead of entire json object
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- Update loop label to only show name of workflow job template instead of entire json object

roles/controller_credential_types/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
loop: "{{ __credentialtypes_job_async.results }}"
4646
loop_control:
4747
loop_var: __credentialtypes_job_async_result_item
48-
label: "{{ __operation.verb }} Controller Credential Type {{ __credentialtypes_job_async_result_item }} | Wait for finish the credential type {{ __operation.action }}"
48+
label: "{{ __operation.verb }} Controller Credential Type {{ __credentialtypes_job_async_result_item.__controller_credential_type_item.name }} | Wait for finish the credential type {{ __operation.action }}"
4949
when: not ansible_check_mode and __credentialtypes_job_async_result_item.ansible_job_id is defined
5050
no_log: "{{ controller_configuration_credential_types_secure_logging }}"
5151
vars:

roles/controller_job_templates/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
loop: "{{ __job_templates_job_async.results }}"
9494
loop_control:
9595
loop_var: __job_templates_job_async_result_item
96-
label: "{{ __operation.verb }} Job Template {{ __job_templates_job_async_result_item }} | Wait for finish the Job Template {{ __operation.action }}"
96+
label: "{{ __operation.verb }} Job Template {{ __job_templates_job_async_result_item.__controller_template_item.name }} | Wait for finish the Job Template {{ __operation.action }}"
9797
when: not ansible_check_mode and __job_templates_job_async_result_item.ansible_job_id is defined
9898
no_log: "{{ controller_configuration_job_templates_secure_logging }}"
9999
vars:

roles/controller_workflow_job_templates/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
loop: "{{ controller_workflows | default(workflow_job_templates) }}"
8282
loop_control:
8383
loop_var: __workflow_loop_item
84+
label: "Workflow {{ __workflow_loop_item.name }}"
8485
when:
8586
- __workflow_loop_item.simplified_workflow_nodes is defined
8687
- (__workflow_loop_item.state | default('present')) == "present"

0 commit comments

Comments
 (0)