mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Use merge operation for load configuration in junos modules (#28369)
* Change load configuration operation from replace to merge
This commit is contained in:
@@ -298,6 +298,8 @@ def main():
|
||||
kwargs = {}
|
||||
if module.params['purge']:
|
||||
kwargs['action'] = 'replace'
|
||||
else:
|
||||
kwargs['action'] = 'merge'
|
||||
|
||||
with locked_config(module):
|
||||
diff = load_config(module, tostring(ele), warnings, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user