mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07: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):
|
class AnsibleF5Parameters(object):
|
||||||
def __init__(self, params=None):
|
def __init__(self, *args, **kwargs):
|
||||||
self._values = defaultdict(lambda: None)
|
self._values = defaultdict(lambda: None)
|
||||||
self._values['__warnings'] = []
|
self._values['__warnings'] = []
|
||||||
|
self.client = kwargs.pop('client', None)
|
||||||
|
params = kwargs.pop('params', None)
|
||||||
if params:
|
if params:
|
||||||
self.update(params=params)
|
self.update(params=params)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue