Fix junos_lldp integration test failure (#27936)

This commit is contained in:
Ganesh Nalawade 2017-08-09 10:23:41 +05:30 committed by GitHub
parent 6874ba23ff
commit 1f7e04d958
2 changed files with 4 additions and 4 deletions

View file

@ -181,8 +181,8 @@ def main():
if state in ('enabled', 'disabled'): if state in ('enabled', 'disabled'):
item['state'] = 'present' item['state'] = 'present'
want = map_params_to_obj(module, param_to_xpath_map) want = map_params_to_obj(module, param_to_xpath_map, param=item)
ele = map_obj_to_ele(module, want, top) ele = map_obj_to_ele(module, want, top, param=item)
with locked_config(module): with locked_config(module):
diff = load_config(module, tostring(ele), warnings, action='replace') diff = load_config(module, tostring(ele), warnings, action='replace')

View file

@ -149,8 +149,8 @@ def main():
if state in ('enabled', 'disabled'): if state in ('enabled', 'disabled'):
item['state'] = 'present' item['state'] = 'present'
want = map_params_to_obj(module, param_to_xpath_map) want = map_params_to_obj(module, param_to_xpath_map, param=item)
ele = map_obj_to_ele(module, want, top) ele = map_obj_to_ele(module, want, top, param=item)
with locked_config(module): with locked_config(module):
diff = load_config(module, tostring(ele), warnings, action='replace') diff = load_config(module, tostring(ele), warnings, action='replace')