mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 04:07:22 -06:00
92f427779d
The formatter in `command/format/state.go`, when formatting a resource with an aliased provider, was looking for a schema with the alias (ie, test.foo), but the schemas are only listed by provider type (test). Update the state formatter to lookup schemas by provider type only. Some of the show tests (and a couple others) were not properly cleaning up the created tmpdirs, so I fixed those. Also, the show tests are using a statefile named `state.tfstate`, but were not passing that path to the show command, so we were getting some false positives (a `show` command that returns `no state` exits 0). Fixes #21462 |
||
---|---|---|
.. | ||
diagnostic_test.go | ||
diagnostic.go | ||
diff_test.go | ||
diff.go | ||
format.go | ||
object_id_test.go | ||
object_id.go | ||
state_test.go | ||
state.go |