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

Add support for evaluating lazy attributes in templates #1027

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stanhu
Copy link

@stanhu stanhu commented Jan 23, 2023

Previously if you had a template with variables that used the lazy keyword, previously it was not possible to validate that the blocks were evaluated in the template. The rendered string would contain an <Chef::DelayedEvaluator> string.

This commit renders the variables to ensure the template renderer displays the lazily-evaluated values.

@stanhu stanhu changed the title Add support for evaulating lazy attributes in templates Add support for evaluating lazy attributes in templates Jan 23, 2023
@stanhu stanhu force-pushed the sh-support-lazy-attributes-in-template branch from b4da4d2 to dd95cd6 Compare January 23, 2023 17:00
Previously if you had a template with `variables` that used the `lazy`
keyword, previously it was not possible to validate that the blocks
were evaluated in the template. The rendered string would contain an
`<Chef::DelayedEvaluator>` string.

This commit renders the variables to ensure the template renderer
displays the lazily-evaluated values.
@stanhu stanhu force-pushed the sh-support-lazy-attributes-in-template branch from dd95cd6 to ae77ba2 Compare January 23, 2023 21:30
@tpowell-progress
Copy link

@stanhu if you are still interested in getting this merged, please resubmit to chef/chefspec

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

Successfully merging this pull request may close these issues.

None yet

2 participants