Fix junos_lldp integration test failure (#27936)
This commit is contained in:
parent
6874ba23ff
commit
1f7e04d958
2 changed files with 4 additions and 4 deletions
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue