Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschladen committed Sep 18, 2024
1 parent 43491e5 commit c7d14f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lemur/certificates/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,14 +600,17 @@ def reissue(old_certificate_name, serial_numbers, notify, commit):

old_cert_by_name = validate_certificate(old_certificate_name)
if old_cert_by_name:
click.echo(f"[+] Reissuing certificate by name: {old_certificate_name}") # TODO remove
certs_to_reissue.append(old_cert_by_name)

old_certs_by_serial_numbers = validate_certificates_by_serial_numbers(serial_numbers)
if old_certs_by_serial_numbers:
click.echo(f"[+] Reissuing certificates by serial numbers: {serial_numbers}") # TODO remove
certs_to_reissue.extend(old_certs_by_serial_numbers)

# if neither name nor serial numbers were specified, reissue all pending reissues
if not certs_to_reissue:
click.echo("[+] Reissuing all pending certificates.")
certs_to_reissue = get_all_pending_reissue()

for old_cert in certs_to_reissue:
Expand Down

0 comments on commit c7d14f7

Please sign in to comment.