Skip to content

Commit

Permalink
fix: Addressing review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
yhakbar committed Feb 13, 2025
1 parent 2d5e986 commit ae3bc0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ func ParseConfig(ctx *ParsingContext, file *hclparse.File, includeFromChild *Inc
return nil, errors.New("failed to find control " + controls.SkipDependenciesInputs)
}

logger := log.ContextWithLogger(ctx, ctx.TerragruntOptions.Logger)
if err := skipDependenciesInputs.Evaluate(logger); err != nil {
evalCtx := log.ContextWithLogger(ctx, ctx.TerragruntOptions.Logger)
if err := skipDependenciesInputs.Evaluate(evalCtx); err != nil {
return nil, err
}
}
Expand Down Expand Up @@ -974,12 +974,12 @@ func detectInputsCtyUsage(file *hclparse.File) bool {
}

root, ok := traversal[0].(hcl.TraverseRoot)
if !ok || root.Name != "dependency" {
if !ok || root.Name != MetadataDependency {
continue
}

attrTraversal, ok := traversal[2].(hcl.TraverseAttr)
if !ok || attrTraversal.Name != "inputs" {
if !ok || attrTraversal.Name != MetadataInputs {
continue
}

Expand Down

0 comments on commit ae3bc0b

Please # to comment.