From 9314607c386d1d75742934dd3c2de88087611a1a Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Fri, 12 Jan 2018 09:50:53 -0800 Subject: [PATCH] Adds selective assignment of kwargs (#34813) For the f5 module utils, the parameters base class needs to selectively get args from kwargs --- lib/ansible/module_utils/network/f5/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/network/f5/common.py b/lib/ansible/module_utils/network/f5/common.py index 48ba4229cb..7a2dfb687f 100644 --- a/lib/ansible/module_utils/network/f5/common.py +++ b/lib/ansible/module_utils/network/f5/common.py @@ -136,9 +136,11 @@ class F5BaseClient(object): class AnsibleF5Parameters(object): - def __init__(self, params=None): + def __init__(self, *args, **kwargs): self._values = defaultdict(lambda: None) self._values['__warnings'] = [] + self.client = kwargs.pop('client', None) + params = kwargs.pop('params', None) if params: self.update(params=params)