Adding the lemur identity to be able to re-issue certificates. (#949)

This commit is contained in:
kevgliss 2017-09-29 14:07:40 -07:00 committed by GitHub
parent f5213deb67
commit 90f4b458e3
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import sys
from flask import current_app
from flask_script import Manager
from flask_principal import Identity, identity_changed
from lemur import database
from lemur.extensions import sentry
@ -122,6 +123,9 @@ def request_reissue(certificate, commit):
:param commit:
:return:
"""
# set the lemur identity for all cli commands
identity_changed.send(current_app._get_current_object(), identity=Identity(1))
details = get_certificate_primitives(certificate)
print_certificate_details(details)