mirror of https://github.com/hashicorp/terraform
fix: Remove deprecation marks when formatting output for the `console` command. (#38676)
This change introduces handling of deprecation marks to resolve the linked issue, where the `console` command would panic when displaying a deprecated field, either directly, as part of a whole resource, or when referenced within a resource/local/etc. Deprecation marks aren't used to change how values are rendered, but they need to be removed before we use the cty library to get string representations of values. I decided to only remove marks in the context of a deprecation mark being present; if a different type of mark is added in future then the engineer implementing it will need to make an explicit decision about how it should be handled in the context of `console`. If that isn't done then the panic from the cty library will re-appear.pull/38683/head
parent
fb8d253b97
commit
b2fc2caf72
@ -0,0 +1,5 @@
|
||||
kind: BUG FIXES
|
||||
body: 'console: Fixed a panic caused by evaluating an expression involving deprecated values'
|
||||
time: 2026-06-03T17:25:07.111161+01:00
|
||||
custom:
|
||||
Issue: "38676"
|
||||
Loading…
Reference in new issue