Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some of UBI-related notes mutable [RHELDST-20307] #231

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/pubtools/pulplib/_impl/model/repository/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ class YumRepository(Repository):
type=list,
converter=frozenlist,
pulp_field="notes.population_sources",
mutable=True,
)
"""List of repository IDs used to populate this repository
"""

ubi_population = pulp_attrib(
default=False, type=bool, pulp_field="notes.ubi_population"
default=False,
type=bool,
pulp_field="notes.ubi_population",
mutable=True,
)
"""Flag indicating whether repo should be populated from population_sources for the purposes of UBI
"""
Expand All @@ -109,7 +113,10 @@ class YumRepository(Repository):
)

ubi_config_version = pulp_attrib(
default=None, type=str, pulp_field="notes.ubi_config_version"
default=None,
type=str,
pulp_field="notes.ubi_config_version",
mutable=True,
)
"""Version of UBI config that should be used for population of this repository."""

Expand Down