We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e34ec7 commit 02811cdCopy full SHA for 02811cd
services/storage/src/simcore_service_storage/datcore_adapter/datcore_adapter_settings.py
@@ -15,10 +15,7 @@ class DatcoreAdapterSettings(BaseCustomSettings):
15
16
@cached_property
17
def endpoint(self) -> str:
18
- endpoint = AnyHttpUrl.build( # pylint:disable=no-member
19
- scheme="http",
20
- host=self.DATCORE_ADAPTER_HOST,
21
- port=self.DATCORE_ADAPTER_PORT,
22
- path=f"/{self.DATCORE_ADAPTER_VTAG}",
+ url = TypeAdapter(AnyHttpUrl).validate_python(
+ f"http://{self.DATCORE_ADAPTER_HOST}:{self.DATCORE_ADAPTER_PORT}/{self.DATCORE_ADAPTER_VTAG}"
23
)
24
- return f"{endpoint}"
+ return f"{url}"
0 commit comments