File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 4
4
import json
5
5
from functools import partial
6
6
7
- from attr import validators , asdict
7
+ from attr import validators , asdict , converters
8
+
8
9
from frozenlist2 import frozenlist
9
10
from more_executors .futures import f_proxy , f_map , f_flat_map
10
11
@@ -247,8 +248,8 @@ class Repository(PulpObject, Deletable):
247
248
default = None ,
248
249
type = int ,
249
250
pulp_field = "notes.eng_product" ,
250
- pulp_py_converter = int ,
251
- py_pulp_converter = str ,
251
+ pulp_py_converter = converters . optional ( int ) ,
252
+ py_pulp_converter = converters . optional ( str ) ,
252
253
)
253
254
"""ID of the product to which this repository belongs (if any)."""
254
255
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ properties:
98
98
99
99
# Name of content set that is associated with this repository
100
100
content_set :
101
- type : string
101
+ anyOf :
102
+ - type : " null"
103
+ - type : string
102
104
103
105
# Version of ubi config that should be used for population of this repository
104
106
ubi_config_version :
You can’t perform that action at this time.
0 commit comments