mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix netconf_config module default_operation issue (#44958)
* Pass parameters as dict to edit_config api as either dict or args can be passed over jsonrpc 2.0 and not combination of args and kwargs
This commit is contained in:
@@ -356,12 +356,13 @@ def main():
|
||||
before = to_text(conn.get_config(source=target), errors='surrogate_then_replace').strip()
|
||||
|
||||
kwargs = {
|
||||
'config': config,
|
||||
'target': target,
|
||||
'default_operation': module.params['default_operation'],
|
||||
'error_option': module.params['error_option'],
|
||||
'format': module.params['format'],
|
||||
}
|
||||
conn.edit_config(config, **kwargs)
|
||||
conn.edit_config(**kwargs)
|
||||
if supports_commit and module.params['commit']:
|
||||
if not module.check_mode:
|
||||
timeout = confirm if confirm > 0 else None
|
||||
|
||||
Reference in New Issue
Block a user