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

literal('%') feat is broken #91

Open
yanndegat opened this issue Dec 15, 2022 · 0 comments
Open

literal('%') feat is broken #91

yanndegat opened this issue Dec 15, 2022 · 0 comments

Comments

@yanndegat
Copy link

hi,

literal('%') is not functional

usecase: test to lookup a var with the following definition

---
test: "%{literal('%'}{TEST}"

Results:

  • within the unit tests inside the hiera package, it's working
  • within the unit tests inside the "lookup" package, it's broken

it outputs an empty string, as if the resulting string were interpolated twice.

to make it work you have to escape the following way:

---
test: "%{literal('%')}{literal('%{literal('%')}')}{TEST}" 
  • it seems that it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant