tpl: Fix crash when using imageConfig
authorTristan Rice <rice@fn.lc>
Sun, 25 Dec 2016 12:43:50 +0000 (04:43 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 25 Dec 2016 12:43:50 +0000 (13:43 +0100)
commitd055862a41e60a336104bf7719cba726641b1da0
treefb5e1b49d25460d3ffcff0fde309aa6dc36d9344
parent8b0c3b9b271c7f3eaa812f7a98bb738fe9cc1846
tpl: Fix crash when using imageConfig

defaultImageConfigCache is now initialized statically instead of relying on it
being initialized in the reset function.

Fixes #2806
tpl/template_funcs.go
tpl/template_funcs_test.go