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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expressions documentation talks about conditional evaluation, but never defines it #12806

Open
johnson-earls opened this issue Jan 27, 2024 · 0 comments
Labels

Comments

@johnson-earls
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Overview of the Issue

The Expressions documentation at https://developer.hashicorp.com/packer/docs/templates/hcl_templates/expressions talks about "conditional evaluation" in a couple of places. But nowhere in that documentation or anywhere else in the Packer documentation do they give examples of or say how to do conditional evaluation. To me, conditional evaluation means logic that determines a value, something like C's ?: ternary operator or Python's foo if bar else baz conditional operator syntax. There is no such thing in Packer. The documentation should not claim there is and then not say anything else about it.

Reproduction Steps

Read the documentation.

Packer version

Packer version 1.9 or 2.0

Simplified Packer Template

I don't have a template because the documentation to create such a template does not exist.

Operating system and Environment details

Not applicable.

Log Fragments and crash.log files

Not applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant