Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glynnforrest committed May 7, 2019
1 parent f08b871 commit cc33d6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/states/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ def _certificate_info_matches(cert_info, required_cert_info, check_serial=False)

return len(diff) == 0, diff


def _certificate_days_remaining(cert_info):
'''
Get the days remaining on a certificate, defaulting to 0 if an error occurs.
'''
try:
expiry = cert_info['Not After']
return (
Expand Down

0 comments on commit cc33d6c

Please sign in to comment.