Skip to content

Commit

Permalink
Merge pull request release-engineering#221 from rbikar/repo_attr_fix
Browse files Browse the repository at this point in the history
Improve `Repository` attrs [RHELDST-22483]
  • Loading branch information
rbikar authored Apr 5, 2024
2 parents 994052e + 5e8ed84 commit fa0f37d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pubtools/pulplib/_impl/model/repository/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import json
from functools import partial

from attr import validators, asdict
from attr import validators, asdict, converters

from frozenlist2 import frozenlist
from more_executors.futures import f_proxy, f_map, f_flat_map

Expand Down Expand Up @@ -247,8 +248,8 @@ class Repository(PulpObject, Deletable):
default=None,
type=int,
pulp_field="notes.eng_product",
pulp_py_converter=int,
py_pulp_converter=str,
pulp_py_converter=converters.optional(int),
py_pulp_converter=converters.optional(str),
)
"""ID of the product to which this repository belongs (if any)."""

Expand Down
4 changes: 3 additions & 1 deletion pubtools/pulplib/_impl/schema/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ properties:

# Name of content set that is associated with this repository
content_set:
type: string
anyOf:
- type: "null"
- type: string

# Version of ubi config that should be used for population of this repository
ubi_config_version:
Expand Down

0 comments on commit fa0f37d

Please sign in to comment.