mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 09:36:21 +01:00
Load empty optional configuration values as 'None'
This commit is contained in:
parent
d1dcf6e63f
commit
4b5534b070
@ -179,7 +179,7 @@ class OscOptions(BaseModel):
|
|||||||
|
|
||||||
if not value.strip():
|
if not value.strip():
|
||||||
if field.is_optional:
|
if field.is_optional:
|
||||||
setattr(self, field_name, value)
|
setattr(self, field_name, None)
|
||||||
return
|
return
|
||||||
|
|
||||||
if field.origin_type is Password:
|
if field.origin_type is Password:
|
||||||
|
Loading…
Reference in New Issue
Block a user