mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Fixes #12871 We were forgetting to remove the legacy remote state from the actual state value when migrating. This only causes an issue when saving a plan since the plan contains the state itself and causes an error where both a backend + legacy state exist. If saved plans aren't used this causes no noticable issue. Due to buggy upgrades already existing in the wild, I also added code to clear the remote section if it exists in a standard unchanged backend
13 lines
233 B
JSON
13 lines
233 B
JSON
{
|
|
"version": 3,
|
|
"terraform_version": "0.8.2",
|
|
"serial": 7,
|
|
"lineage": "backend-new-legacy",
|
|
"remote": {
|
|
"type": "local",
|
|
"config": {
|
|
"path": "local-state-old.tfstate"
|
|
}
|
|
}
|
|
}
|