levant icon indicating copy to clipboard operation
levant copied to clipboard

Add -strict to error if there is a key missing

Open Mongey opened this issue 5 years ago • 5 comments

Currently if you forget to pass in variable you'll be left with <no value> in the template.

This prevents rendering of templates unless all of the variables are set.

[ERROR] levant/command: template: jobTemplate:2:3: executing "jobTemplate" at <.foo>: map has no entry for key "foo"

Not sure of the name -strict 😆
📝 perhaps this should be the default behaviour

Mongey avatar Oct 11 '19 15:10 Mongey

@jrasell I think maybe you are going to have to be the one to smash the merge button on this.

angrycub avatar Nov 09 '20 20:11 angrycub

@jrasell Waiting for this one to be merged as well :)

sashayakovtseva avatar May 05 '21 08:05 sashayakovtseva

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Mar 12 '22 17:03 hashicorp-cla

Hi, is there anything blocking the merge of this PR? Looks like tests pass and it's been approved by the maintainer.

gautamg795 avatar Jan 29 '24 23:01 gautamg795

Getting this in would be great. Any update?

skoppe avatar Mar 05 '24 12:03 skoppe