You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Community Note
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'sfoo 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.
The text was updated successfully, but these errors were encountered: