Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/elasticsearch/index/index/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ func (model tfModel) toPutIndexParams(serverFlavor string) models.PutIndexParams
timeout, _ := model.Timeout.Parse()

params := models.PutIndexParams{
MasterTimeout: masterTimeout,
Timeout: timeout,
Timeout: timeout,
}

if serverFlavor != "serverless" {
params.MasterTimeout = masterTimeout
params.WaitForActiveShards = model.WaitForActiveShards.ValueString()
}

Expand Down
1 change: 1 addition & 0 deletions internal/elasticsearch/index/index/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ func Test_tfModel_toPutIndexParams(t *testing.T) {
if isServerless {
flavor = "serverless"
expectedParams.WaitForActiveShards = ""
expectedParams.MasterTimeout = 0
}

params := model.toPutIndexParams(flavor)
Expand Down
Loading