Skip to content

Commit 46814a9

Browse files
committed
fix: Update deprecated vars usage
1 parent 54ce6e4 commit 46814a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/common/tasks/github_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- name: "[{{ app }}] Fail if version is not null"
1717
ansible.builtin.fail:
1818
msg: 'Target version is `null`. This is probably because Github API call limit was exceeded (run `curl -s https://api.github.com/` to verify). Try again later.'
19-
when: vars[app ~ '_version'] in [ '', 'null'] or vars[app ~ '_version'] | length == 0
19+
when: lookup('vars', app ~ '_version') in ['', 'null'] or lookup('vars', app ~ '_version') | length == 0
2020

2121
- name: "[{{ app }}] Set proper download URL"
2222
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)