Skip to content

Commit 72f1628

Browse files
fix settings
1 parent 861792b commit 72f1628

File tree

1 file changed

+4
-3
lines changed
  • services/autoscaling/src/simcore_service_autoscaling/core

1 file changed

+4
-3
lines changed

services/autoscaling/src/simcore_service_autoscaling/core/settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
field_validator,
2424
model_validator,
2525
)
26-
from pytest_simcore.helpers.dict_tools import ConfigDict
26+
from pydantic_settings import SettingsConfigDict
2727
from settings_library.base import BaseCustomSettings
2828
from settings_library.docker_registry import RegistrySettings
2929
from settings_library.ec2 import EC2Settings
@@ -44,7 +44,7 @@ class AutoscalingSSMSettings(SSMSettings):
4444

4545

4646
class AutoscalingEC2Settings(EC2Settings):
47-
model_config = ConfigDict(
47+
model_config = SettingsConfigDict(
4848
env_prefix=AUTOSCALING_ENV_PREFIX,
4949
json_schema_extra={
5050
"examples": [
@@ -286,7 +286,8 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
286286
"but a docker node label named osparc-services-ready is attached",
287287
)
288288
AUTOSCALING_TRACING: TracingSettings | None = Field(
289-
auto_default_from_env=True, description="settings for opentelemetry tracing"
289+
description="settings for opentelemetry tracing",
290+
json_schema_extra={"auto_default_from_env":True},
290291
)
291292

292293
AUTOSCALING_DOCKER_JOIN_DRAINED: bool = Field(

0 commit comments

Comments
 (0)