Skip to content

Commit 5fe3967

Browse files
null
1 parent 831ff21 commit 5fe3967

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/director-v2/src/simcore_service_director_v2/models/dynamic_services_scheduler.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,12 @@ def as_label_data(self) -> str:
541541
# compose_spec needs to be json encoded before encoding it to json
542542
# and storing it in the label
543543
return self.model_copy(
544-
update={"compose_spec": self.compose_spec}, deep=True
544+
update={
545+
"compose_spec": (
546+
json.dumps(self.compose_spec) if self.compose_spec else None
547+
)
548+
},
549+
deep=True,
545550
).model_dump_json()
546551

547552
model_config = ConfigDict(extra="allow", populate_by_name=True)

0 commit comments

Comments
 (0)