-
Notifications
You must be signed in to change notification settings - Fork 125
add exists template function #272
base: main
Are you sure you want to change the base?
Conversation
|
Addendum: I recognize this is possible by using the |
|
Hi @jsipprell thanks a lot for this addition, I really like it. I am curious if the name |
|
Sure, I can update the docs. How about |
|
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes 0 out of 2 committers have signed the CLA.
Jesse Sipprell seems not to be a GitHub user. Have you signed the CLA already but the status is still pending? Recheck it. |
|
@jrasell Since the sprig functions are merged into levant, would this be a case that is now covered by sprig's |
When using levant with a common template but different vars files, it would be useful to be able to test for the existence of a key in a map. This PR adds an
existstemplate function to test for key existence without failing due to the templatemissingkeyoption being set.Example usage: