mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
allow netcfg to pass kwargs from __call__ to configure() (#17653)
This minor fix allows kwargs to pass from Config __call__ to the underlying transport instance.
This commit is contained in:
@@ -49,9 +49,9 @@ class Config(object):
|
|||||||
def __init__(self, connection):
|
def __init__(self, connection):
|
||||||
self.connection = connection
|
self.connection = connection
|
||||||
|
|
||||||
def __call__(self, commands):
|
def __call__(self, commands, **kwargs):
|
||||||
lines = to_list(commands)
|
lines = to_list(commands)
|
||||||
return self.connection.configure(lines)
|
return self.connection.configure(lines, **kwargs)
|
||||||
|
|
||||||
def load_config(self, commands, **kwargs):
|
def load_config(self, commands, **kwargs):
|
||||||
commands = to_list(commands)
|
commands = to_list(commands)
|
||||||
|
|||||||
Reference in New Issue
Block a user