mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 21:03:03 +00:00
fix(ingest): Remove env deprecation message (#10581)
This commit is contained in:
parent
1544a604b7
commit
e79bdc0099
@ -4,7 +4,6 @@ from pydantic import validator
|
|||||||
from pydantic.fields import Field
|
from pydantic.fields import Field
|
||||||
|
|
||||||
from datahub.configuration.common import ConfigModel
|
from datahub.configuration.common import ConfigModel
|
||||||
from datahub.configuration.validate_field_deprecation import pydantic_field_deprecated
|
|
||||||
from datahub.metadata.schema_classes import FabricTypeClass
|
from datahub.metadata.schema_classes import FabricTypeClass
|
||||||
|
|
||||||
DEFAULT_ENV = FabricTypeClass.PROD
|
DEFAULT_ENV = FabricTypeClass.PROD
|
||||||
@ -36,12 +35,6 @@ class EnvConfigMixin(ConfigModel):
|
|||||||
description="The environment that all assets produced by this connector belong to",
|
description="The environment that all assets produced by this connector belong to",
|
||||||
)
|
)
|
||||||
|
|
||||||
_env_deprecation = pydantic_field_deprecated(
|
|
||||||
"env",
|
|
||||||
message="We recommend using platform_instance instead of env. "
|
|
||||||
"While specifying env does still work, we intend to deprecate it in the future.",
|
|
||||||
)
|
|
||||||
|
|
||||||
@validator("env")
|
@validator("env")
|
||||||
def env_must_be_one_of(cls, v: str) -> str:
|
def env_must_be_one_of(cls, v: str) -> str:
|
||||||
if v.upper() not in ALL_ENV_TYPES:
|
if v.upper() not in ALL_ENV_TYPES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user