Skip to content

Commit 0f767a5

Browse files
committed
Temporary fix for ubi_config_version attr
* the default value of `ubi_config_version` set to None may cause error when repository is updated on pulp server because pulp would try to remove non-existent repo note which will fail with KeyError * let's set this repo note default value to empty string temporarily as the fix should actually be done on pulp * can/should be reverted as soon as pulp fix is deployed
1 parent 02f2361 commit 0f767a5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class YumRepository(Repository):
113113
)
114114

115115
ubi_config_version = pulp_attrib(
116-
default=None,
116+
default="",
117117
type=str,
118118
pulp_field="notes.ubi_config_version",
119119
mutable=True,

0 commit comments

Comments
 (0)