From f83e3f764e9b8fccf921feb4ee490eb7de1e9726 Mon Sep 17 00:00:00 2001 From: e11it Date: Fri, 22 May 2020 21:52:43 +0300 Subject: [PATCH] always assign csr_sans to name --- lemur/certificates/schemas.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lemur/certificates/schemas.py b/lemur/certificates/schemas.py index bc7ff1b0..42e444bc 100644 --- a/lemur/certificates/schemas.py +++ b/lemur/certificates/schemas.py @@ -147,8 +147,7 @@ class CertificateInputSchema(CertificateCreationSchema): elif not data["extensions"]["subAltNames"].get("names"): data["extensions"]["subAltNames"]["names"] = [] - if not data["extensions"]["subAltNames"]["names"]: - data["extensions"]["subAltNames"]["names"] += csr_sans + data["extensions"]["subAltNames"]["names"] = csr_sans return missing.convert_validity_years(data)