Skip to content

Commit

Permalink
fix(ingest): Remove env deprecation message (#10581)
Browse files Browse the repository at this point in the history
  • Loading branch information
treff7es authored May 23, 2024
1 parent 1544a60 commit e79bdc0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions metadata-ingestion/src/datahub/configuration/source_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e79bdc0

Please sign in to comment.