Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Nov 14, 2024
1 parent e0f8b08 commit 0f2e38e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from models_library.projects_nodes_io import NodeID, NodeIDStr
from models_library.services import ServiceType
from models_library.services_enums import ServiceBootType, ServiceState
from pydantic import AnyHttpUrl, BaseModel, PositiveInt
from pydantic import AnyHttpUrl, BaseModel, PositiveInt, TypeAdapter
from rich.live import Live
from rich.table import Table
from servicelib.services_utils import get_service_from_key
Expand Down Expand Up @@ -58,8 +58,8 @@ def _get_dynamic_sidecar_endpoint(
dynamic_sidecar_names = DynamicSidecarNamesHelper.make(NodeID(node_id))
hostname = dynamic_sidecar_names.service_name_dynamic_sidecar
port = settings.DYNAMIC_SERVICES.DYNAMIC_SIDECAR.DYNAMIC_SIDECAR_PORT
url = AnyHttpUrl.build( # pylint: disable=no-member
scheme="http", host=hostname, port=port
url: AnyHttpUrl = TypeAdapter(AnyHttpUrl).validate_python(
f"http://{hostname}:{port}"
)
return url

Expand Down

0 comments on commit 0f2e38e

Please sign in to comment.