mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Moved exception handler in a little bit (#22376)
It wasn't being caught in the previous indentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user