Skip to content

Commit cfdf50e

Browse files
committed
fixes
1 parent 6041cec commit cfdf50e

File tree

1 file changed

+7
-9
lines changed
  • services/catalog/src/simcore_service_catalog/clients

1 file changed

+7
-9
lines changed

services/catalog/src/simcore_service_catalog/clients/director.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff 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

293291
async def director_lifespan(app: FastAPI) -> AsyncIterator[State]:

0 commit comments

Comments
 (0)