Skip to content

Commit

Permalink
Default use_only_state to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcervante committed Aug 25, 2022
1 parent 6b60567 commit ab76509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ provider "mock" {

- `data_directory` (String)
- `resource_directory` (String)
- `use_only_state` (Boolean)
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ab76509

Please sign in to comment.