From ac68c82ce6db76445869b86b5eb6f8c1775c4ae3 Mon Sep 17 00:00:00 2001 From: Andreas Karis Date: Tue, 25 May 2021 17:38:24 +0200 Subject: [PATCH] Fix error message when validate required nic is present is false 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 #406 Signed-off-by: Andreas Karis --- plugins/virsh/tasks/bridged_network.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/virsh/tasks/bridged_network.yml b/plugins/virsh/tasks/bridged_network.yml index 942cab0726..82c22d9e9e 100644 --- a/plugins/virsh/tasks/bridged_network.yml +++ b/plugins/virsh/tasks/bridged_network.yml @@ -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