Skip to content

Commit 30e2cd9

Browse files
committed
Bugfixes
1 parent 50a72a0 commit 30e2cd9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

packages/models-library/src/models_library/services_metadata_published.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ class ServiceMetaDataPublished(ServiceKeyVersion, ServiceBaseDisplay):
149149
alias="progress_regexp",
150150
description="regexp pattern for detecting computational service's progress",
151151
)
152+
strip_path: str | None = Field(
153+
None,
154+
description="??? Mystery Pokemon Missingo",
155+
)
152156
inputs_path: str | None = Field(
153157
None,
154158
description="if this is present, the service is a modern style dv2 dynamic service",
@@ -157,7 +161,7 @@ class ServiceMetaDataPublished(ServiceKeyVersion, ServiceBaseDisplay):
157161
None,
158162
description="if this is present, the service is a modern style dv2 dynamic service",
159163
)
160-
state_paths: str | None = Field(
164+
state_paths: list[str] = Field(
161165
None,
162166
description="if this is present, the service is a modern style dv2 dynamic service",
163167
)

services/director/src/simcore_service_director/registry_proxy.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,14 @@ async def get_image_details(
417417
try:
418418
label_data = json.loads(labels[key])
419419
for label_key in label_data:
420-
if isinstance(
421-
label_key, dict
420+
if isinstance(label_key, dict) or isinstance(
421+
label_data, list
422422
): # Dicts from "simcore.service." docker image labels are omitted.
423423
continue
424424
image_details[label_key] = label_data[label_key]
425+
except json.JSONDecodeError:
426+
label_data = [] # Set to empty list if the value is not JSON
427+
pass
425428
except json.decoder.JSONDecodeError:
426429
logging.exception(
427430
"Error while decoding json formatted data from %s:%s",

0 commit comments

Comments
 (0)