Skip to content

Commit

Permalink
No "contract" in SeedNode
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Jun 18, 2024
1 parent 10ca84b commit 7853431
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/dbt/parser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ def update_parsed_node_config(
if "contract" in config_dict and config_dict["contract"]:
contract_dct = config_dict["contract"]
Contract.validate(contract_dct)
assert hasattr(parsed_node, "contract")
parsed_node.contract = Contract.from_dict(contract_dct)
# Seed node has contract config (from NodeConfig) but no contract in SeedNode
if hasattr(parsed_node, "contract"):
parsed_node.contract = Contract.from_dict(contract_dct)

# unrendered_config is used to compare the original database/schema/alias
# values and to handle 'same_config' and 'same_contents' calls
Expand Down

0 comments on commit 7853431

Please sign in to comment.