Skip to content

Commit

Permalink
expose baseblock's config so the actual block could use it
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Apr 18, 2024
1 parent ee359dc commit 5b073fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ func (bb *BaseBlock) PreConditionCheck(ctx *hcl.EvalContext) ([]PreCondition, er
return failedChecks, err
}

func (bb *BaseBlock) Config() Config {
return bb.c
}

func (bb *BaseBlock) forEachDefined() bool {
_, forEach := bb.HclBlock().Body.Attributes["for_each"]
return forEach
Expand Down

0 comments on commit 5b073fc

Please sign in to comment.