From 1f7e04d958837f0c880ac71873032fd012447fdf Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Wed, 9 Aug 2017 10:23:41 +0530 Subject: [PATCH] Fix junos_lldp integration test failure (#27936) --- lib/ansible/modules/network/junos/junos_lldp.py | 4 ++-- lib/ansible/modules/network/junos/junos_lldp_interface.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/network/junos/junos_lldp.py b/lib/ansible/modules/network/junos/junos_lldp.py index 33fe7c5e271..61edead2a48 100644 --- a/lib/ansible/modules/network/junos/junos_lldp.py +++ b/lib/ansible/modules/network/junos/junos_lldp.py @@ -181,8 +181,8 @@ def main(): if state in ('enabled', 'disabled'): item['state'] = 'present' - want = map_params_to_obj(module, param_to_xpath_map) - ele = map_obj_to_ele(module, want, top) + want = map_params_to_obj(module, param_to_xpath_map, param=item) + ele = map_obj_to_ele(module, want, top, param=item) with locked_config(module): diff = load_config(module, tostring(ele), warnings, action='replace') diff --git a/lib/ansible/modules/network/junos/junos_lldp_interface.py b/lib/ansible/modules/network/junos/junos_lldp_interface.py index bc568ec1079..e876d77a2bc 100644 --- a/lib/ansible/modules/network/junos/junos_lldp_interface.py +++ b/lib/ansible/modules/network/junos/junos_lldp_interface.py @@ -149,8 +149,8 @@ def main(): if state in ('enabled', 'disabled'): item['state'] = 'present' - want = map_params_to_obj(module, param_to_xpath_map) - ele = map_obj_to_ele(module, want, top) + want = map_params_to_obj(module, param_to_xpath_map, param=item) + ele = map_obj_to_ele(module, want, top, param=item) with locked_config(module): diff = load_config(module, tostring(ele), warnings, action='replace')