fix(ingest): Remove env deprecation message (#10581)

This commit is contained in:
Tamas Nemeth 2024-05-24 00:12:40 +02:00 committed by GitHub
parent 1544a604b7
commit e79bdc0099
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,6 @@ from pydantic import validator
from pydantic.fields import Field
from datahub.configuration.common import ConfigModel
from datahub.configuration.validate_field_deprecation import pydantic_field_deprecated
from datahub.metadata.schema_classes import FabricTypeClass
DEFAULT_ENV = FabricTypeClass.PROD
@ -36,12 +35,6 @@ class EnvConfigMixin(ConfigModel):
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")
def env_must_be_one_of(cls, v: str) -> str:
if v.upper() not in ALL_ENV_TYPES: