Skip to content

Commit

Permalink
Update cosmos/dbt/selector.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tatiana Al-Chueyr <[email protected]>
  • Loading branch information
Jensen Yap and tatiana authored Aug 16, 2023
1 parent c93ffba commit 25cc01e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cosmos/dbt/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ def select_nodes_ids_by_intersection(nodes: dict[str, DbtNode], config: Selector
https://docs.getdbt.com/reference/node-selection/yaml-selectors
"""
selected_nodes = set()
for node_id, node in nodes.items():
if config.is_empty_config:
continue

if not config.is_empty_config:
for node_id, node in nodes.items():
if config.tags and not (sorted(node.tags) == sorted(config.tags)):
continue

Expand Down

0 comments on commit 25cc01e

Please sign in to comment.