From 65d5f1a4ef896ef00c68eb6a6b52d55d0aee0ccc Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 16 Dec 2018 21:26:29 +0100 Subject: [PATCH] Fix stacktrace when fail_on_error is False and a file cannot be parsed. (#49987) --- lib/ansible/modules/crypto/certificate_complete_chain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/crypto/certificate_complete_chain.py b/lib/ansible/modules/crypto/certificate_complete_chain.py index 26d98fcb189..4f8b01ed06a 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):