unit test
This commit is contained in:
@ -138,7 +138,6 @@ class Certificate(db.Model):
|
||||
logs = relationship('Log', backref='certificate')
|
||||
endpoints = relationship('Endpoint', backref='certificate')
|
||||
rotation_policy = relationship("RotationPolicy")
|
||||
|
||||
sensitive_fields = ('private_key',)
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -281,7 +281,8 @@ def create(**kwargs):
|
||||
# "attribute refresh operation cannot proceed"
|
||||
pending_cert = database.session_query(PendingCertificate).get(cert.id)
|
||||
from lemur.common.celery import fetch_acme_cert
|
||||
fetch_acme_cert.delay(pending_cert.id)
|
||||
if not current_app.config.get("ACME_DISABLE_AUTORESOLVE", False):
|
||||
fetch_acme_cert.delay(pending_cert.id)
|
||||
|
||||
return cert
|
||||
|
||||
|
Reference in New Issue
Block a user