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