From c86f8220f08e3a43e36a5b2de9841d708f95ce63 Mon Sep 17 00:00:00 2001 From: Thomas Florio Date: Fri, 25 Oct 2024 10:13:11 +0200 Subject: [PATCH] Ignore return code when checking if eth1 exists --- salt/default/network.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/default/network.sls b/salt/default/network.sls index 6610c1c54..eff9273aa 100644 --- a/salt/default/network.sls +++ b/salt/default/network.sls @@ -74,7 +74,7 @@ ipv6_disable_all: {% endif %} {% if grains['osfullname'] in ['SLE Micro', 'openSUSE Leap Micro'] and (grains['osrelease'] != '5.1' and grains['osrelease'] != '5.2') %} -{% set conname2 = salt.cmd.run_stdout('nmcli -g GENERAL.CONNECTION device show eth1') %} +{% set conname2 = salt.cmd.run_stdout('nmcli -g GENERAL.CONNECTION device show eth1', ignore_retcode=true) %} {% if conname2 != '' %} enable_dhcp_on_eth1: cmd.run: