Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <gardar@users.noreply.github.com>
  • Loading branch information
gardar committed Oct 31, 2024
1 parent 3c94d03 commit a30fa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/nvidia_gpu_exporter/tasks/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

- name: Discover latest version
ansible.builtin.set_fact:
nvidia_gpu_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _nvidia_gpu_exporter_repo }}/releases/latest', headers=_nvidia_gpu_exporter_github_api_headers,
split_lines=False) | from_json).get('tag_name') | replace('v', '') }}"
nvidia_gpu_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _nvidia_gpu_exporter_repo }}/releases/latest',
headers=_nvidia_gpu_exporter_github_api_headers, split_lines=False) | from_json).get('tag_name') | replace('v', '') }}"
run_once: true
until: nvidia_gpu_exporter_version is version('0.0.0', '>=')
retries: 10
Expand Down

0 comments on commit a30fa72

Please sign in to comment.