mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-14 19:00:37 -05:00
If an error occurs on creating the context for console or import, we would fail to unlock the state. Fix this by unlocking slightly earlier. Affects console and import commands. Fixes #23318
16 lines
176 B
HCL
16 lines
176 B
HCL
terraform {
|
|
backend "local" {
|
|
path = "imported.tfstate"
|
|
}
|
|
}
|
|
|
|
provider "test" {
|
|
foo = "bar"
|
|
}
|
|
|
|
resource "test_instance" "foo" {
|
|
}
|
|
|
|
resource "unknown_instance" "baz" {
|
|
}
|