Skip to content

Commit

Permalink
Fix json deserialization problem due to trailing empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
guenhter committed Oct 7, 2023
1 parent dc3eef1 commit 8377c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/list-configured-runners-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
registered_gitlab_runner_names: "{{ registered_gitlab_runner_names + [json_item['msg']] }}"
vars:
json_item: "{{ item | from_json }}"
loop: "{{ registered_runners_json_result.container.Output.split('\n') }}"
loop: "{{ registered_runners_json_result.container.Output | trim('\n') | split('\n') }}"
when: "'Executor' in json_item"

- name: Print configured runners
Expand Down

0 comments on commit 8377c31

Please sign in to comment.