Skip to content

Commit 6df0170

Browse files
revert
1 parent 18c5bab commit 6df0170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ def from_service_inspect(
540540
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
543-
return self.model_validate(
544-
{**self.model_dump(), "compose_spec": json.dumps(self.compose_spec)}
543+
return self.model_copy(
544+
update={"compose_spec": json.dumps(self.compose_spec)}, deep=True
545545
).model_dump_json()
546546

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

0 commit comments

Comments
 (0)