Skip to content

Commit cdfd8fe

Browse files
committed
Make some of UBI-related notes mutable [RHELDST-20307]
For adding extra content (for testing of UBI repos) to the ubi repository we need make some of repo notes mutable so we can update them in existing repositories.
1 parent 5db5ffd commit cdfd8fe

File tree

1 file changed

+9
-2
lines changed
  • src/pubtools/pulplib/_impl/model/repository

1 file changed

+9
-2
lines changed

src/pubtools/pulplib/_impl/model/repository/yum.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,16 @@ class YumRepository(Repository):
9292
type=list,
9393
converter=frozenlist,
9494
pulp_field="notes.population_sources",
95+
mutable=True,
9596
)
9697
"""List of repository IDs used to populate this repository
9798
"""
9899

99100
ubi_population = pulp_attrib(
100-
default=False, type=bool, pulp_field="notes.ubi_population"
101+
default=False,
102+
type=bool,
103+
pulp_field="notes.ubi_population",
104+
mutable=True,
101105
)
102106
"""Flag indicating whether repo should be populated from population_sources for the purposes of UBI
103107
"""
@@ -109,7 +113,10 @@ class YumRepository(Repository):
109113
)
110114

111115
ubi_config_version = pulp_attrib(
112-
default=None, type=str, pulp_field="notes.ubi_config_version"
116+
default=None,
117+
type=str,
118+
pulp_field="notes.ubi_config_version",
119+
mutable=True,
113120
)
114121
"""Version of UBI config that should be used for population of this repository."""
115122

0 commit comments

Comments
 (0)