Skip to content

Commit 8618098

Browse files
continue fixing
1 parent 6f2e8db commit 8618098

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

services/director-v2/src/simcore_service_director_v2/cli/_close_and_save_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def async_close_and_save_service(
106106
client = Client(
107107
app=app,
108108
async_client=thin_dv2_localhost_client.client,
109-
base_url=TypeAdapter(AnyHttpUrl).validate_python(thin_dv2_localhost_client.BASE_ADDRESS),
109+
base_url=f"{TypeAdapter(AnyHttpUrl).validate_python(thin_dv2_localhost_client.BASE_ADDRESS)}",
110110
)
111111

112112
if not skip_container_removal:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ class DockerContainerInspect(BaseModel):
127127

128128
@cached_property
129129
def status(self) -> DockerStatus:
130-
assert self.container_state.Status # nosec
131-
result: DockerStatus = self.container_state.Status
130+
assert self.container_state.status # nosec
131+
result: DockerStatus = self.container_state.status
132132
return result
133133

134134
@classmethod
@@ -198,7 +198,7 @@ class DynamicSidecar(BaseModel):
198198

199199
is_ready: bool = Field(
200200
default=False,
201-
scription=(
201+
description=(
202202
"is True while the health check on the dynamic-sidecar is responding. "
203203
"Meaning that the dynamic-sidecar is reachable and can accept requests"
204204
),
@@ -220,7 +220,7 @@ def compose_spec_submitted(self) -> bool:
220220

221221
containers_inspect: list[DockerContainerInspect] = Field(
222222
[],
223-
scription="docker inspect results from all the container ran at regular intervals",
223+
description="docker inspect results from all the container ran at regular intervals",
224224
)
225225

226226
was_dynamic_sidecar_started: bool = False

services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from aiodocker.exceptions import DockerError
2+
from common_library.errors_classes import OsparcErrorMixin
23
from models_library.projects_nodes_io import NodeID
3-
from pydantic.errors import PydanticErrorMixin
44

55
from ...core.errors import DirectorError
66

@@ -39,6 +39,6 @@ class LegacyServiceIsNotSupportedError(DirectorError):
3939
"""This API is not implemented by the director-v0"""
4040

4141

42-
class UnexpectedContainerStatusError(PydanticErrorMixin, DynamicSidecarError):
42+
class UnexpectedContainerStatusError(OsparcErrorMixin, DynamicSidecarError):
4343
code = "dynamic_sidecar.container_status"
4444
msg_template = "Unexpected status from containers: {containers_with_error}"

0 commit comments

Comments
 (0)