levant icon indicating copy to clipboard operation
levant copied to clipboard

Sprig function "dig" not defined

Open evgenipetrov9 opened this issue 2 years ago • 1 comments

Description

Unable to use the "dig" function from Sprig. Now I have to write multiple guard clauses just to go through a dictionary.

Relevant Nomad job specification file

[ERROR] levant/command: template: jobTemplate:159: function "dig" not defined

Output of levant version:

Levant v0.3.0

evgenipetrov9 avatar Jan 25 '22 07:01 evgenipetrov9

Hi @evgenipetrov9; the dig function was only added in sprig v3.2.1 and the current Levant dependency uses v.3.1.0. I will therefore raise a PR to update the dependency which will bring in this template function.

jrasell avatar Jun 09 '22 08:06 jrasell