From a3ad614759a971f4daec561ea27609e36d800a89 Mon Sep 17 00:00:00 2001 From: David Newswanger Date: Thu, 10 Aug 2017 10:53:13 -0400 Subject: [PATCH] ignore failures when trying to remove interfaces that are already missing using nxos_config (#28003) --- .../targets/nxos_interface/tests/cli/set_state_present.yaml | 1 + .../targets/nxos_interface/tests/nxapi/set_state_present.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/test/integration/targets/nxos_interface/tests/cli/set_state_present.yaml b/test/integration/targets/nxos_interface/tests/cli/set_state_present.yaml index eeb2206ebe..3478ed50a4 100644 --- a/test/integration/targets/nxos_interface/tests/cli/set_state_present.yaml +++ b/test/integration/targets/nxos_interface/tests/cli/set_state_present.yaml @@ -6,6 +6,7 @@ lines: - no interface Loopback1 provider: "{{ cli }}" + ignore_errors: yes # Fails if the interface is already absent - name: set state=present nxos_interface: diff --git a/test/integration/targets/nxos_interface/tests/nxapi/set_state_present.yaml b/test/integration/targets/nxos_interface/tests/nxapi/set_state_present.yaml index c2f30b7e05..82d6afd76c 100644 --- a/test/integration/targets/nxos_interface/tests/nxapi/set_state_present.yaml +++ b/test/integration/targets/nxos_interface/tests/nxapi/set_state_present.yaml @@ -6,6 +6,7 @@ lines: - no interface Loopback1 provider: "{{ nxapi }}" + ignore_errors: yes # Fails if the interface is already absent - name: set state=present nxos_interface: