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
286
286
timeout , _ := model .Timeout .Parse ()
287
287
288
288
params := models.PutIndexParams {
289
- MasterTimeout : masterTimeout ,
290
- Timeout : timeout ,
289
+ Timeout : timeout ,
291
290
}
292
291
293
292
if serverFlavor != "serverless" {
293
+ params .MasterTimeout = masterTimeout
294
294
params .WaitForActiveShards = model .WaitForActiveShards .ValueString ()
295
295
}
296
296
Original file line number Diff line number Diff line change @@ -365,6 +365,7 @@ func Test_tfModel_toPutIndexParams(t *testing.T) {
365
365
if isServerless {
366
366
flavor = "serverless"
367
367
expectedParams .WaitForActiveShards = ""
368
+ expectedParams .MasterTimeout = 0
368
369
}
369
370
370
371
params := model .toPutIndexParams (flavor )
You can’t perform that action at this time.
0 commit comments