Verified Commit e0f34514 authored by Peter Stanko's avatar Peter Stanko
Browse files

Skip when value is None

parent 68a85a3f
Pipeline #31348 passed with stage
in 7 minutes and 28 seconds
......@@ -147,7 +147,8 @@ class ResourceDefinitionService(GeneralService):
schema['config'] = _extract_params(config, config_params)
for param in self._timed_params:
value: datetime = getattr(config, param)
schema['config'][param] = value.isoformat()
if value:
schema['config'][param] = value.isoformat()
return schema
@property
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment