mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07: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:
parent
eee406dfd2
commit
b0d6867fbb
3 changed files with 16 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue