Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move target_model vars inside loop to avoid reuse on subsequent refs #1515

Merged
merged 2 commits into from
Jun 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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