fix lint errors (unused vars, line length, formatting)
Some checks failed
CI / Lint & Format (push) Failing after 19s
CI / Unit Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Security Scan (push) Failing after 22s
CI / Security Tests (push) Has been skipped
Some checks failed
CI / Lint & Format (push) Failing after 19s
CI / Unit Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Security Scan (push) Failing after 22s
CI / Security Tests (push) Has been skipped
This commit is contained in:
@@ -276,9 +276,7 @@ class PKI:
|
||||
Raises:
|
||||
PKIError: If unable to generate unique serial after max retries
|
||||
"""
|
||||
existing_serials = {
|
||||
cert["serial"] for cert in self._certificates.values()
|
||||
}
|
||||
existing_serials = {cert["serial"] for cert in self._certificates.values()}
|
||||
|
||||
for _ in range(_SERIAL_MAX_RETRIES):
|
||||
serial = x509.random_serial_number()
|
||||
|
||||
Reference in New Issue
Block a user