another round of lint errors

This commit is contained in:
sirferl 2020-09-14 16:34:56 +02:00
parent e011cc9251
commit 02c7a5ca7c
1 changed files with 4 additions and 2 deletions

View File

@ -19,13 +19,14 @@ def log_status_code(r, *args, **kwargs):
"""
metrics.send("ENTRUST_status_code_{}".format(r.status_code), "counter", 1)
def determine_end_date(end_date):
"""
Determine appropriate end date
:param end_date:
:return: validity_end
"""
#ENTRUST only allows 13 months of max certificate duration
# ENTRUST only allows 13 months of max certificate duration
max_validity_end = arrow.utcnow().shift(years=1, months=+1).format('YYYY-MM-DD')
if not end_date:
@ -35,6 +36,7 @@ def determine_end_date(end_date):
end_date = max_validity_end
return end_date
def process_options(options):
"""
Processes and maps the incoming issuer options to fields/options that