Adds selective assignment of kwargs (#34813)

For the f5 module utils, the parameters base class needs to selectively
get args from kwargs
pull/34814/head
Tim Rupp 7 years ago committed by GitHub
parent 82a0253059
commit 9314607c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save