summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-09-19 22:27:31 -0400
committerGitHub <noreply@github.com>2016-09-19 22:27:31 -0400
commit433a0e1e40021f718570ea5f46fdf8ee2dc2ce4b (patch)
tree2e5dfe8348062f9fef9197e05e23d9d3ab8d6d53
parent6fc9ffd28eee8c8a2fc8449bc5b2d2f831e16bf4 (diff)
downloadansible-433a0e1e40021f718570ea5f46fdf8ee2dc2ce4b.tar.gz
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.
-rw-r--r--lib/ansible/module_utils/netcfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py
index 857ffa1dc3..28bef48c03 100644
--- a/lib/ansible/module_utils/netcfg.py
+++ b/lib/ansible/module_utils/netcfg.py
@@ -49,9 +49,9 @@ class Config(object):
def __init__(self, connection):
self.connection = connection
- def __call__(self, commands):
+ def __call__(self, commands, **kwargs):
lines = to_list(commands)
- return self.connection.configure(lines)
+ return self.connection.configure(lines, **kwargs)
def load_config(self, commands, **kwargs):
commands = to_list(commands)