terraform/internal/command/jsonstate
Kristin Laemmert 35c19d7c9f
command/jsonstate: remove redundant remarking of resource instance (#29049)
* command/jsonstate: remove redundant remarking of resource instance

ResourceInstanceObjectSrc.Decode already handles marking values with any marks stored in ri.Current.AttrSensitivePaths, so re-applying those marks is not necessary.

We've gotten reports of panics coming from this line of code, though I have yet to reproduce the panic in a test.

* Implement test to reproduce panic on #29042

Co-authored-by: David Alger <davidmalger@gmail.com>
2021-06-29 10:59:20 -04:00
..
doc.go
state.go command/jsonstate: remove redundant remarking of resource instance (#29049) 2021-06-29 10:59:20 -04:00
state_test.go command/jsonstate: remove redundant remarking of resource instance (#29049) 2021-06-29 10:59:20 -04:00