states/tls: add log.error in file not found error-handling

This commit is contained in:
Martin Paulus 2018-03-22 11:28:00 +01:00
parent 48b73f46cb
commit 743fa942aa

View File

@ -43,6 +43,7 @@ def valid_certificate(
except IOError as exc: except IOError as exc:
ret['comment'] = '{}'.format(exc) ret['comment'] = '{}'.format(exc)
ret['result'] = False ret['result'] = False
log.error(ret['comment'])
return ret return ret
# verify that the cert is valid *now* # verify that the cert is valid *now*