File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/director-v2/src/simcore_service_director_v2/cli Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212from models_library .projects_nodes_io import NodeID , NodeIDStr
1313from models_library .services import ServiceType
1414from models_library .services_enums import ServiceBootType , ServiceState
15- from pydantic import AnyHttpUrl , BaseModel , PositiveInt
15+ from pydantic import AnyHttpUrl , BaseModel , PositiveInt , TypeAdapter
1616from rich .live import Live
1717from rich .table import Table
1818from servicelib .services_utils import get_service_from_key
@@ -58,8 +58,8 @@ def _get_dynamic_sidecar_endpoint(
5858 dynamic_sidecar_names = DynamicSidecarNamesHelper .make (NodeID (node_id ))
5959 hostname = dynamic_sidecar_names .service_name_dynamic_sidecar
6060 port = settings .DYNAMIC_SERVICES .DYNAMIC_SIDECAR .DYNAMIC_SIDECAR_PORT
61- url = AnyHttpUrl . build ( # pylint: disable=no-member
62- scheme = "http" , host = hostname , port = port
61+ url : AnyHttpUrl = TypeAdapter ( AnyHttpUrl ). validate_python (
62+ f "http:// { hostname } : { port } "
6363 )
6464 return url
6565
You can’t perform that action at this time.
0 commit comments