From d067166cfcb217c8b36dd3b8ddca7adb6763c647 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Tue, 24 Oct 2017 16:13:14 -0700 Subject: [PATCH] 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 --- lib/ansible/module_utils/f5_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/module_utils/f5_utils.py b/lib/ansible/module_utils/f5_utils.py index 4f3f0d1bac6..dd4a14fa1d7 100644 --- a/lib/ansible/module_utils/f5_utils.py +++ b/lib/ansible/module_utils/f5_utils.py @@ -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: