Skip to content

Commit

Permalink
Fix linters issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yaguangtang authored and vexxhost-bot committed Jul 29, 2024
1 parent 382176e commit bce2a6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/ironic/tasks/network/lookup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
register: ironic_bare_metal_networks_info

- name: Assert that we match a single network only
run_once: true
assert:
ansible.builtin.assert:
that:
- ironic_bare_metal_networks_info.openstack_networks | length == 1
fail_msg: "Expected exactly one network, but found {{ ironic_bare_metal_networks_info.openstack_networks | length }}"
success_msg: "Successfully matched a single network"
run_once: true

- name: Set fact with bare metal network information
ansible.builtin.set_fact:
Expand Down

0 comments on commit bce2a6b

Please sign in to comment.