Skip to content

Commit b21e2d1

Browse files
authored
Suppress unevaluable/unknown/null errors on provider block eval (#159)
1 parent 3f60c75 commit b21e2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func GetProject(runner tflint.Runner) (string, error) {
4141

4242
if attr, exists := provider.Body.Attributes["project"]; exists {
4343
var project string
44-
if err := runner.EvaluateExpr(attr.Expr, &project, opts); err != nil {
44+
if err := runner.EnsureNoError(runner.EvaluateExpr(attr.Expr, &project, opts), func() error { return nil }); err != nil {
4545
return project, err
4646
}
4747
}

0 commit comments

Comments
 (0)