diff --git a/metadata-ingestion/src/datahub/ingestion/transformer/extract_ownership_from_tags.py b/metadata-ingestion/src/datahub/ingestion/transformer/extract_ownership_from_tags.py index e2c245679c5e8..64f70988ea3a7 100644 --- a/metadata-ingestion/src/datahub/ingestion/transformer/extract_ownership_from_tags.py +++ b/metadata-ingestion/src/datahub/ingestion/transformer/extract_ownership_from_tags.py @@ -1,6 +1,6 @@ +import re from functools import lru_cache from typing import List, Optional, cast -import re from datahub.configuration.common import TransformerSemanticsConfigModel from datahub.emitter.mce_builder import Aspect @@ -69,7 +69,7 @@ def transform_aspect( tag_str = tag_urn.get_entity_id()[0] re_match = re.search(self.config.tag_prefix, tag_str) if re_match: - owner_str = tag_str[re_match.end():].strip() + owner_str = tag_str[re_match.end() :].strip() owner_urn_str = self.get_owner_urn(owner_str) if self.config.is_user: owner_urn = str(CorpuserUrn.create_from_id(owner_urn_str))