From 064ab7a92dad055c69cb06fab7fa98a7b90dfe1f Mon Sep 17 00:00:00 2001 From: saichint Date: Tue, 15 Aug 2017 10:14:40 -0700 Subject: [PATCH] fix for remove idempotent issue (#28226) --- lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py index 263ab7154c..68d633563f 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py @@ -330,7 +330,7 @@ def main(): candidate = CustomNetworkConfig(indent=3) if state == 'present': state_present(module, existing, proposed, candidate) - elif state == 'absent': + elif existing and state == 'absent': state_absent(module, existing, proposed, candidate) if candidate: