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')