Skip to content

Commit

Permalink
Merge pull request #68 from AcroMedia/fix_error_when_using_encrypted_…
Browse files Browse the repository at this point in the history
…tokens

Force variable to be a string before checking its length
  • Loading branch information
riemers authored Oct 6, 2019
2 parents e1a819d + 5db3c70 commit 8bd3851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

- name: Register GitLab Runner
include_tasks: register-runner.yml
when: gitlab_runner_registration_token | length > 0 # Ensure value is set
when: gitlab_runner_registration_token | string | length > 0 # Ensure value is set
loop: "{{ gitlab_runner_runners }}"
loop_control:
index_var: gitlab_runner_index
Expand Down

0 comments on commit 8bd3851

Please sign in to comment.