Skip to content

Commit

Permalink
Remove "tags:" prefix from model config selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshimaru46 committed Dec 12, 2024
1 parent 110fb07 commit 807cd58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ def load_via_custom_parser(self) -> None:
for model_name, model in models:
config = {item.split(":")[0]: item.split(":")[-1] for item in model.config.config_selectors}
tags = [selector for selector in model.config.config_selectors if selector.startswith("tags:")]
# Remove the "tags:" prefix
tags = [tag.split(":")[-1] for tag in tags]
node = DbtNode(
unique_id=f"{model.type.value}.{self.project.project_name}.{model_name}",
resource_type=DbtResourceType(model.type.value),
Expand Down

0 comments on commit 807cd58

Please sign in to comment.