Skip to content

Commit

Permalink
Fix 'dict object' has no attribute 'path' when running with --check (#…
Browse files Browse the repository at this point in the history
…283)

Co-authored-by: Ishan Jain <[email protected]>
  • Loading branch information
JMLX42 and ishanjainn authored Nov 5, 2024
1 parent be1697c commit cb10061
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/grafana/tasks/dashboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
become: false
delegate_to: localhost
run_once: true
when: "grafana_dashboards | length > 0"
when:
- not ansible_check_mode
- "grafana_dashboards | length > 0"
block:
- name: "Download grafana dashboard from grafana.net to local directory"
ansible.builtin.get_url:
Expand Down

0 comments on commit cb10061

Please sign in to comment.