summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rupp <caphrim007@gmail.com>2018-05-25 08:51:24 -0700
committerGitHub <noreply@github.com>2018-05-25 08:51:24 -0700
commit174d7f8ea2cc361fe0d52801414fbcf5f1c7c142 (patch)
treeb1cc7c5f8b242c5f7e8e89c9966ec46347894b8b
parent6fb128b235e80e965e1932e757aadbab776f7422 (diff)
downloadansible-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.py9
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