File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
services/catalog/src/simcore_service_catalog/clients Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -277,17 +277,15 @@ async def get_service_extras(
277277 )
278278
279279 # get org labels
280- result .update (
281- {
282- sl : labels [dl ]
283- for dl , sl in _ORG_LABELS_TO_SCHEMA_LABELS .items ()
284- if dl in labels
285- }
286- )
280+ if service_build_details := {
281+ sl : labels [dl ]
282+ for dl , sl in _ORG_LABELS_TO_SCHEMA_LABELS .items ()
283+ if dl in labels
284+ }:
287285
288- _logger . debug ( "Following service extras were compiled: %s" , pformat ( result ) )
286+ result . update ({ "service_build_details" : service_build_details } )
289287
290- return TypeAdapter (ServiceExtras ).validate_python (result )
288+ return TypeAdapter (ServiceExtras ).validate_python (result , strict = True )
291289
292290
293291async def director_lifespan (app : FastAPI ) -> AsyncIterator [State ]:
You can’t perform that action at this time.
0 commit comments