Skip to content

Commit 2f723f0

Browse files
back
1 parent 5fe3967 commit 2f723f0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,7 @@ 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={
545-
"compose_spec": (
546-
json.dumps(self.compose_spec) if self.compose_spec else None
547-
)
548-
},
544+
update={"compose_spec": json.dumps(self.compose_spec)},
549545
deep=True,
550546
).model_dump_json()
551547

0 commit comments

Comments
 (0)