diff --git a/docs/index.md b/docs/index.md index 9cebc7e..f117c39 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,3 +25,4 @@ provider "mock" { - `data_directory` (String) - `resource_directory` (String) +- `use_only_state` (Boolean) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index c8a3cd3..bcf8fae 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -76,7 +76,7 @@ func (p *provider) Configure(ctx context.Context, req tfsdk.ConfigureProviderReq ctx = tflog.With(ctx, "data_directory", p.client.DataDirectory) if data.UseOnlyState.Null { - p.useOnlyState = true + p.useOnlyState = false } else { p.useOnlyState = data.UseOnlyState.Value }