From 433a0e1e40021f718570ea5f46fdf8ee2dc2ce4b Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 19 Sep 2016 22:27:31 -0400 Subject: 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. --- lib/ansible/module_utils/netcfg.py | 4 ++-- 1 file 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) -- cgit v1.2.1