Skip to content

Commit

Permalink
Allow variable references in depends_on (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck authored Nov 1, 2023
1 parent 1d15797 commit e138364
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/schema/0.12/data_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func datasourceBlockSchema(v *version.Version) *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.DataScope},
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.12/output_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func outputBlockSchema() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.DataScope},
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.12/resource_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func resourceBlockSchema(v *version.Version) *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.DataScope},
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/0.13/module_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func moduleBlockSchema() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.DataScope},
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
},
},
IsOptional: true,
Expand Down
1 change: 1 addition & 0 deletions internal/schema/1.5/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func scopedDataBlock() *schema.BlockSchema {
schema.Reference{OfScopeId: refscope.DataScope},
schema.Reference{OfScopeId: refscope.ModuleScope},
schema.Reference{OfScopeId: refscope.ResourceScope},
schema.Reference{OfScopeId: refscope.VariableScope},
},
},
IsOptional: true,
Expand Down

0 comments on commit e138364

Please sign in to comment.