Skip to content

Commit

Permalink
Merge pull request #1515 from tbescherer/project-inner-loop
Browse files Browse the repository at this point in the history
move target_model vars inside loop to avoid reuse on subsequent refs
  • Loading branch information
beckjake authored Jun 10, 2019
2 parents ea26373 + ca31b79 commit 9f208f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/dbt/parser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ def process_docs(cls, manifest, current_project):
@classmethod
def process_refs_for_node(cls, manifest, current_project, node):
"""Given a manifest and a node in that manifest, process its refs"""
target_model = None
target_model_name = None
target_model_package = None

for ref in node.refs:
target_model = None
target_model_name = None
target_model_package = None

if len(ref) == 1:
target_model_name = ref[0]
elif len(ref) == 2:
Expand Down

0 comments on commit 9f208f7

Please sign in to comment.