mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-31 18:34:11 +02:00
Load empty optional configuration values as 'None'
This commit is contained in:
@@ -179,7 +179,7 @@ class OscOptions(BaseModel):
|
||||
|
||||
if not value.strip():
|
||||
if field.is_optional:
|
||||
setattr(self, field_name, value)
|
||||
setattr(self, field_name, None)
|
||||
return
|
||||
|
||||
if field.origin_type is Password:
|
||||
|
Reference in New Issue
Block a user