File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
internal/elasticsearch/index/index Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,11 @@ func (model tfModel) toPutIndexParams(serverFlavor string) models.PutIndexParams
286286 timeout , _ := model .Timeout .Parse ()
287287
288288 params := models.PutIndexParams {
289- MasterTimeout : masterTimeout ,
290- Timeout : timeout ,
289+ Timeout : timeout ,
291290 }
292291
293292 if serverFlavor != "serverless" {
293+ params .MasterTimeout = masterTimeout
294294 params .WaitForActiveShards = model .WaitForActiveShards .ValueString ()
295295 }
296296
Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ func Test_tfModel_toPutIndexParams(t *testing.T) {
365365 if isServerless {
366366 flavor = "serverless"
367367 expectedParams .WaitForActiveShards = ""
368+ expectedParams .MasterTimeout = 0
368369 }
369370
370371 params := model .toPutIndexParams (flavor )
You can’t perform that action at this time.
0 commit comments