Skip to content

Commit

Permalink
Capitalize errata severity when creating record in pulp (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
javihernandez authored Dec 6, 2024
1 parent dde7c95 commit 9676356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alws/crud/errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9676356

Please sign in to comment.