Segment out the update method (#32103)
This patch changes the base parameters class to segment out the update method. This is done often throughout the f5 modules, so this just bakes it into the mod utils so that I can delete it from each module
This commit is contained in:
parent
5663d11b94
commit
d067166cfc
1 changed files with 5 additions and 0 deletions
|
@ -327,6 +327,11 @@ class AnsibleF5Client(object):
|
|||
class AnsibleF5Parameters(object):
|
||||
def __init__(self, params=None):
|
||||
self._values = defaultdict(lambda: None)
|
||||
self._values['__warnings'] = []
|
||||
if params:
|
||||
self.update(params=params)
|
||||
|
||||
def update(self, params=None):
|
||||
if params:
|
||||
for k, v in iteritems(params):
|
||||
if self.api_map is not None and k in self.api_map:
|
||||
|
|
Loading…
Reference in a new issue