Commit 9466242b authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.ca: Coding style.

parent 810e7ec2
...@@ -264,8 +264,10 @@ class CertificateAuthority(object): ...@@ -264,8 +264,10 @@ class CertificateAuthority(object):
).digest), ).digest),
override_limits=override_limits, override_limits=override_limits,
) )
if requested_amount is not None and \ if (
requested_amount <= self._auto_sign_csr_amount: requested_amount is not None and
requested_amount <= self._auto_sign_csr_amount
):
# if allowed to sign this certificate automaticaly # if allowed to sign this certificate automaticaly
self._createCertificate(csr_id, auto_signed=_AUTO_SIGNED_YES) self._createCertificate(csr_id, auto_signed=_AUTO_SIGNED_YES)
return csr_id return csr_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment