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:
parent
edcbef27ec
commit
3c69cf6d7d
1 changed files with 8 additions and 5 deletions
|
@ -293,11 +293,14 @@ class AnsibleF5Parameters(object):
|
|||
setattr(self, self.api_params[k], v)
|
||||
except (KeyError, TypeError):
|
||||
# Otherwise set things to attributes as normal
|
||||
setattr(self, k, v)
|
||||
except AttributeError:
|
||||
# If all else fails, stash them in a dictionary. For
|
||||
# instance, if the module developer forgot a map.
|
||||
self._values[k] = v
|
||||
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,
|
||||
# or said developer didn't need to add a setter for
|
||||
# the property
|
||||
self._values[k] = v
|
||||
|
||||
def __getattr__(self, item):
|
||||
# Ensures that properties that weren't defined, and therefore stashed
|
||||
|
|
Loading…
Reference in a new issue