Skip to content

Commit

Permalink
Merge pull request #308 from gardar/fix-jinja-warnings
Browse files Browse the repository at this point in the history
fix: syntax warnings
  • Loading branch information
guenhter authored Jan 23, 2024
2 parents e64b598 + bbe9013 commit ece7eee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/main-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: (Container) Register GitLab Runner
include_tasks: register-runner-container.yml
vars:
- actual_gitlab_runner_name: "{{ gitlab_runner.name|default(ansible_hostname+'-'+gitlab_runner_index|string) }}"
actual_gitlab_runner_name: "{{ gitlab_runner.name | default(ansible_hostname + '-' + gitlab_runner_index | string) }}"
when: gitlab_runner.token is defined or gitlab_runner_registration_token | string | length > 0
loop: "{{ gitlab_runner_runners }}"
loop_control:
Expand Down
2 changes: 1 addition & 1 deletion tasks/main-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- name: (Unix) Register GitLab Runner
include_tasks: register-runner.yml
vars:
- actual_gitlab_runner_name: "{{ gitlab_runner.name|default(ansible_hostname+'-'+gitlab_runner_index|string) }}"
actual_gitlab_runner_name: "{{ gitlab_runner.name | default(ansible_hostname + '-' + gitlab_runner_index | string) }}"
when: gitlab_runner.token is defined or gitlab_runner_registration_token | string | length > 0
loop: "{{ gitlab_runner_runners }}"
loop_control:
Expand Down
2 changes: 1 addition & 1 deletion tasks/main-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- name: (Windows) Register GitLab Runner
include_tasks: register-runner-windows.yml
vars:
- actual_gitlab_runner_name: "{{ gitlab_runner.name|default(ansible_hostname+'-'+gitlab_runner_index|string) }}"
actual_gitlab_runner_name: "{{ gitlab_runner.name | default(ansible_hostname + '-' + gitlab_runner_index | string) }}"
when: gitlab_runner.token is defined or gitlab_runner_registration_token | string | length > 0
loop: "{{ gitlab_runner_runners }}"
loop_control:
Expand Down
2 changes: 1 addition & 1 deletion tasks/validate-runner-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: "Check for deprecated settings: {{ actual_gitlab_runner_name }}"
ansible.builtin.assert:
that:
- "'{{ setting.name }}' not in gitlab_runner"
- "setting['name'] not in gitlab_runner"
fail_msg: "DEPRECATED setting for runner {{ actual_gitlab_runner_name }}: {{ setting.name }} - {{ setting.message }}"
quiet: true
loop:
Expand Down

0 comments on commit ece7eee

Please sign in to comment.