diff options
author | Felix Fontein <felix@fontein.de> | 2018-12-16 21:26:29 +0100 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-12-16 15:26:29 -0500 |
commit | 65d5f1a4ef896ef00c68eb6a6b52d55d0aee0ccc (patch) | |
tree | 5643d06ec0784cc27ea4893e799fb3edfaefc42b | |
parent | c0dbc1a441c6bc8ca9220947b462fbcc6019bef6 (diff) | |
download | ansible-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.py | 1 |
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): |