Skip to content

Commit

Permalink
Fix error message when validate required nic is present is false
Browse files Browse the repository at this point in the history
The error message contained a reference to invalid variable
nic_name. This commit fixes this and provides a clue to what
might have gone wrong.

Closes issue redhat-openstack#406

Signed-off-by: Andreas Karis <[email protected]>
  • Loading branch information
andreaskaris committed May 25, 2021
1 parent 26a35df commit ac68c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/virsh/tasks/bridged_network.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html#bridged-network
- name: validate required nic is present
fail:
msg: "Cannot find bridge nic: {{ nic_name }}"
msg: "Cannot find bridge nic: Empty nic_data for {{ nic_settings }}. Have you configured override.networks with this NIC name, but the NIC does not exist on the server?"
when: nic_data == ''

- name: disable netfilter for bridges
Expand Down

0 comments on commit ac68c82

Please sign in to comment.