From b3318f2595311dd0a072b380b3344337abbe5248 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Mon, 8 Oct 2018 11:11:01 +0400 Subject: [PATCH] nxos_evpn_vni check_mode (#46612) Signed-off-by: Trishna Guha (cherry picked from commit d69700b236207390f529cac2ca8de51b2a69f2cc) --- lib/ansible/modules/network/nxos/nxos_evpn_vni.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py index e5beea8479d..12172a9306d 100644 --- a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py @@ -275,8 +275,9 @@ def main(): candidate = CustomNetworkConfig(indent=3) candidate.add(commands, parents=parents) candidate = candidate.items_text() - load_config(module, candidate) - results['changed'] = True + if not module.check_mode: + load_config(module, candidate) + results['changed'] = True results['commands'] = candidate else: results['commands'] = []