summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fontein <felix@fontein.de>2018-12-16 21:26:29 +0100
committeransibot <ansibot@users.noreply.github.com>2018-12-16 15:26:29 -0500
commit65d5f1a4ef896ef00c68eb6a6b52d55d0aee0ccc (patch)
tree5643d06ec0784cc27ea4893e799fb3edfaefc42b
parentc0dbc1a441c6bc8ca9220947b462fbcc6019bef6 (diff)
downloadansible-65d5f1a4ef896ef00c68eb6a6b52d55d0aee0ccc.tar.gz
Fix stacktrace when fail_on_error is False and a file cannot be parsed. (#49987)
-rw-r--r--lib/ansible/modules/crypto/certificate_complete_chain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/modules/crypto/certificate_complete_chain.py b/lib/ansible/modules/crypto/certificate_complete_chain.py
index 26d98fcb18..4f8b01ed06 100644
--- a/lib/ansible/modules/crypto/certificate_complete_chain.py
+++ b/lib/ansible/modules/crypto/certificate_complete_chain.py
@@ -230,6 +230,7 @@ def load_PEM_list(module, path, fail_on_error=True):
module.fail_json(msg=msg)
else:
module.warn(msg)
+ return []
class CertificateSet(object):