From ec1abbbe7847f2829019b1859e66c793fb2bfb27 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Wed, 28 May 2025 15:51:41 -0700 Subject: [PATCH] simplify --- metadata-ingestion/src/datahub/emitter/rest_emitter.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/metadata-ingestion/src/datahub/emitter/rest_emitter.py b/metadata-ingestion/src/datahub/emitter/rest_emitter.py index 89fa58c5b9..b001621c26 100644 --- a/metadata-ingestion/src/datahub/emitter/rest_emitter.py +++ b/metadata-ingestion/src/datahub/emitter/rest_emitter.py @@ -267,13 +267,7 @@ class RequestsSessionConfig(ConfigModel): # 1.0 refers to the user agent string version datahub_component = self.datahub_component or DATAHUB_COMPONENT_ENV - if "/" in datahub_component: - component_string = f"{datahub_component}; datahub/{datahub_version}" - else: - # We expect users of datahub_component to include a / if they want - # to set a version separate from the acryl-datahub version. - component_string = f"{datahub_component}/{datahub_version}" - return f"DataHub-Client/1.0 ({client_mode.name.lower()}; {component_string}){requests_user_agent}" + return f"DataHub-Client/1.0 ({client_mode.name.lower()}; datahub/{datahub_version}) {datahub_component}{requests_user_agent}" @dataclass