diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c7d9bd9a2..8309f0872e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/internal/backend/remote-state/inmem/backend.go b/internal/backend/remote-state/inmem/backend.go index 2a2f155595..c12573e0ad 100644 --- a/internal/backend/remote-state/inmem/backend.go +++ b/internal/backend/remote-state/inmem/backend.go @@ -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)