From ff2affd11ae6243fb9e013df630794bf3ecd2ce8 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Sat, 18 Feb 2017 00:06:21 -0800 Subject: [PATCH] Fixes name (#21610) The named implied the reverse of how I was actually creating the dictionary, so correct that. --- lib/ansible/module_utils/f5_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/f5_utils.py b/lib/ansible/module_utils/f5_utils.py index b56425f59da..490efccc737 100644 --- a/lib/ansible/module_utils/f5_utils.py +++ b/lib/ansible/module_utils/f5_utils.py @@ -293,7 +293,7 @@ class AnsibleF5Parameters(object): @classmethod def from_api(cls, params): - for key,value in iteritems(cls.api_param_map): + for key,value in iteritems(cls.param_api_map): params[key] = params.pop(value, None) p = cls(params) return p @@ -315,7 +315,7 @@ class AnsibleF5Parameters(object): def _api_params_from_map(self): result = dict() - pmap = self.__class__.api_param_map + pmap = self.__class__.param_api_map for k,v in iteritems(pmap): value = getattr(self, k) result[v] = value