Skip to content

Commit

Permalink
Merge pull request #8 from mila-iqia/fix/check_var_is_defined
Browse files Browse the repository at this point in the history
fix: Make sure infiniband_hca_devices is defined
  • Loading branch information
btravouillon authored Mar 4, 2022
2 parents da0f17d + 1dfb7d1 commit 1fb4f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
- name: Configure SR-IOV
ansible.builtin.include_tasks:
file: "configure_sriov-{{ ansible_facts['os_family'] }}.yml"
when: (infiniband_hca_devices | map(attribute='sriov_en') | list) is any
when: infiniband_hca_devices is defined and
(infiniband_hca_devices | map(attribute='sriov_en') | list) is any

- name: Configure IPoIB interfaces
ansible.builtin.include_tasks:
Expand Down

0 comments on commit 1fb4f60

Please sign in to comment.