mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -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
|
@ -144,7 +144,9 @@ class Netconf(NetconfBase):
|
|||
raise Exception(to_xml(exc.xml))
|
||||
|
||||
@ensure_connected
|
||||
def edit_config(self, config, format='xml', target='candidate', default_operation=None, test_option=None, error_option=None):
|
||||
def edit_config(self, config=None, format='xml', target='candidate', default_operation=None, test_option=None, error_option=None):
|
||||
if config is None:
|
||||
raise ValueError('config value must be provided')
|
||||
try:
|
||||
response = self.m.edit_config(config, format=format, target=target, default_operation=default_operation, test_option=test_option,
|
||||
error_option=error_option)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue