From 9676356800c9912d44e11ab77b75ec70878666b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Hern=C3=A1ndez=20Ant=C3=BAnez?= Date: Fri, 6 Dec 2024 13:59:04 +0100 Subject: [PATCH] Capitalize errata severity when creating record in pulp (#1085) Fixes: https://github.com/AlmaLinux/build-system/issues/405 --- alws/crud/errata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alws/crud/errata.py b/alws/crud/errata.py index f27c2d72..a5c6ceaf 100644 --- a/alws/crud/errata.py +++ b/alws/crud/errata.py @@ -1000,7 +1000,7 @@ async def create_new_errata_record(db: AsyncSession, errata: BaseErrataRecord): advisory_id=errata.id, original_id=original_id, platform_name=platform.name, - severity=errata.severity, + severity=errata.severity.capitalize(), packages=errata.packages, platform_id=errata.platform_id, find_packages_types=pkg_types, @@ -1428,7 +1428,7 @@ async def release_errata_packages( "summary": record.summary or default_summary, "version": record.version, "type": record.get_type(), - "severity": record.severity, + "severity": record.severity.capitalize(), "solution": record.solution or ERRATA_SOLUTION, "release": "0", "rights": record.rights,