[2.7] certificate_complete_chain: fix stacktrace on parsing error (#49988)

* Fix stacktrace when fail_on_error is False and a file cannot be parsed. (#49987)


(cherry picked from commit 65d5f1a4ef)

* Add changelog.
pull/50616/head
Felix Fontein 6 years ago committed by Toshio Kuratomi
parent 898ec291b0
commit 47228b8cf1

@ -0,0 +1,2 @@
bugfixes:
- "certificate_complete_chain - fix behavior when invalid file is parsed while reading intermediate or root certificates."

@ -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):

Loading…
Cancel
Save