mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adds selective assignment of kwargs (#34813)
For the f5 module utils, the parameters base class needs to selectively get args from kwargs
This commit is contained in:
parent
82a0253059
commit
9314607c38
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue