diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-01 12:50:37 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-01 13:39:30 +0200 |
commit | 6c70e1f22f365322d5f754302e110c9ed716b215 (patch) | |
tree | bcf30eb942afad09a2a7f56e0d0f490614ec1311 /tpl/images/init.go | |
parent | 4d221ce468a1209ee9dd6cbece9d1273dad6a29b (diff) |
Fix error handling for the time func alias
Fixes #8835
Diffstat (limited to 'tpl/images/init.go')
-rw-r--r-- | tpl/images/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/images/init.go b/tpl/images/init.go index e9fd52e73..f3233f6e9 100644 --- a/tpl/images/init.go +++ b/tpl/images/init.go @@ -26,7 +26,7 @@ func init() { ns := &internal.TemplateFuncsNamespace{ Name: name, - Context: func(args ...interface{}) interface{} { return ctx }, + Context: func(args ...interface{}) (interface{}, error) { return ctx, nil }, } ns.AddMethodMapping(ctx.Config, |