1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Moved exception handler in a little bit (#22376)

It wasn't being caught in the previous indentation
This commit is contained in:
Tim Rupp 2017-03-07 13:05:01 -08:00 committed by John R Barker
parent edcbef27ec
commit 3c69cf6d7d

View file

@ -293,10 +293,13 @@ class AnsibleF5Parameters(object):
setattr(self, self.api_params[k], v)
except (KeyError, TypeError):
# Otherwise set things to attributes as normal
try:
setattr(self, k, v)
except AttributeError:
# If all else fails, stash them in a dictionary. For
# instance, if the module developer forgot a map.
# instance, if the module developer forgot a map,
# or said developer didn't need to add a setter for
# the property
self._values[k] = v
def __getattr__(self, item):