Fix inmem backend crash due to missing struct field (#1619)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2024-05-07 09:09:14 -04:00 committed by GitHub
parent 91561ca8e8
commit 08469452b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,7 @@ ENHANCEMENTS:
BUG FIXES:
* Fixed crash in gcs backend when using certain commands ([#1618](https://github.com/opentofu/opentofu/pull/1618))
* Fix inmem backend crash due to missing struct field ([#1619](https://github.com/opentofu/opentofu/pull/1619))
* Added a check in the `tofu test` to validate that the names of test run blocks do not contain spaces. ([#1489](https://github.com/opentofu/opentofu/pull/1489))
* `tofu test` now supports accessing module outputs when the module has no resources. ([#1409](https://github.com/opentofu/opentofu/pull/1409))

View File

@ -76,9 +76,7 @@ func (b *Backend) configure(ctx context.Context) error {
Name: backend.DefaultStateName,
}
states.m[backend.DefaultStateName] = &remote.State{
Client: defaultClient,
}
states.m[backend.DefaultStateName] = remote.NewState(defaultClient, b.encryption)
// set the default client lock info per the test config
data := schema.FromContextBackendConfig(ctx)