mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes name (#21610)
The named implied the reverse of how I was actually creating the dictionary, so correct that.
This commit is contained in:
parent
4d4fdb3500
commit
ff2affd11a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue