diff options
author | Tim Rupp <caphrim007@gmail.com> | 2018-05-25 08:51:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 08:51:24 -0700 |
commit | 174d7f8ea2cc361fe0d52801414fbcf5f1c7c142 (patch) | |
tree | b1cc7c5f8b242c5f7e8e89c9966ec46347894b8b | |
parent | 6fb128b235e80e965e1932e757aadbab776f7422 (diff) | |
download | ansible-174d7f8ea2cc361fe0d52801414fbcf5f1c7c142.tar.gz |
Fixes an incorrect method definition (#40719)
The to_return method def in bigiq's https offload module was incorrect.
This fixes it.
-rw-r--r-- | lib/ansible/modules/network/f5/bigiq_application_https_offload.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ansible/modules/network/f5/bigiq_application_https_offload.py b/lib/ansible/modules/network/f5/bigiq_application_https_offload.py index 0314779aee..901b23d5dd 100644 --- a/lib/ansible/modules/network/f5/bigiq_application_https_offload.py +++ b/lib/ansible/modules/network/f5/bigiq_application_https_offload.py @@ -394,9 +394,12 @@ class ModuleParameters(Parameters): class Changes(Parameters): def to_return(self): result = {} - for returnable in self.returnables: - result[returnable] = getattr(self, returnable) - result = self._filter_params(result) + try: + for returnable in self.returnables: + result[returnable] = getattr(self, returnable) + result = self._filter_params(result) + except Exception: + pass return result |