Skip to content

Commit 62c4c48

Browse files
GitHKAndrei Neagu
andauthored
fixed SimcoreServiceSettingLabelEntry parsing (ITISFoundation#3052)
Co-authored-by: Andrei Neagu <[email protected]>
1 parent fdb8a04 commit 62c4c48

File tree

1 file changed

+12
-10
lines changed
  • services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_service_specs

1 file changed

+12
-10
lines changed

services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_service_specs/settings.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,19 @@ def _merge_resources_in_settings(
275275

276276
# merge all resources
277277
empty_resource_entry: SimcoreServiceSettingLabelEntry = (
278-
SimcoreServiceSettingLabelEntry(
279-
name="Resources",
280-
setting_type="Resources",
281-
value={
282-
"Limits": {"NanoCPUs": 0, "MemoryBytes": 0},
283-
"Reservations": {
284-
"NanoCPUs": 0,
285-
"MemoryBytes": 0,
286-
"GenericResources": [],
278+
SimcoreServiceSettingLabelEntry.parse_obj(
279+
dict(
280+
name="Resources",
281+
type="Resources",
282+
value={
283+
"Limits": {"NanoCPUs": 0, "MemoryBytes": 0},
284+
"Reservations": {
285+
"NanoCPUs": 0,
286+
"MemoryBytes": 0,
287+
"GenericResources": [],
288+
},
287289
},
288-
},
290+
)
289291
)
290292
)
291293

0 commit comments

Comments
 (0)