Skip to content

Commit

Permalink
fix: test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Nov 1, 2023
1 parent ccdd229 commit 21b2ee8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions checks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ func template(ctx *context.Context, template v1.Template) (string, error) {
tpl.Functions[k] = v
}

e, err := unstructure(ctx.Environment)
if err != nil {
return "", err
}

return gomplate.RunTemplate(e, tpl)
return gomplate.RunTemplate(ctx.Environment, tpl)
}

// transform generates new checks from the transformation template of the parent check
Expand Down

0 comments on commit 21b2ee8

Please sign in to comment.