Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprig function "dig" not defined #439

Open
evgenipetrov9 opened this issue Jan 25, 2022 · 1 comment · May be fixed by #450
Open

Sprig function "dig" not defined #439

evgenipetrov9 opened this issue Jan 25, 2022 · 1 comment · May be fixed by #450
Assignees
Labels
dependencies Pull requests that update a dependency file stage/accepted theme/template/function Relates to templating functions type/enhancement

Comments

@evgenipetrov9
Copy link

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
@jrasell
Copy link
Member

jrasell commented Jun 9, 2022

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 jrasell self-assigned this Jun 9, 2022
@jrasell jrasell added dependencies Pull requests that update a dependency file type/enhancement stage/accepted theme/template/function Relates to templating functions labels Jun 9, 2022
@jrasell jrasell linked a pull request Jun 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file stage/accepted theme/template/function Relates to templating functions type/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants