File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -416,26 +416,24 @@ def wait_for_cluster_state_updates_to_finish(client, timeout=30):
416
416
417
417
418
418
def is_xpack_template (name ):
419
- if ".monitoring-" in name :
419
+ if name . startswith ( ".monitoring-" ) :
420
420
return True
421
- if ".watch" in name or ".triggered_watches" in name :
421
+ elif name . startswith ( ".watch" ) or name . startswith ( ".triggered_watches" ) :
422
422
return True
423
- if ".data-frame-" in name :
423
+ elif name . startswith ( ".data-frame-" ) :
424
424
return True
425
- if ".ml-" in name :
425
+ elif name . startswith ( ".ml-" ) :
426
426
return True
427
- if ".transform-" in name :
427
+ elif name .startswith (".transform-" ):
428
+ return True
429
+ elif name .startswith (".deprecation-" ):
428
430
return True
429
431
if name in {
430
432
".watches" ,
431
- "logstash-index-template" ,
432
- ".logstash-management" ,
433
433
"security_audit_log" ,
434
434
".slm-history" ,
435
435
".async-search" ,
436
- ".geoip_databases" ,
437
436
"saml-service-provider" ,
438
- "ilm-history" ,
439
437
"logs" ,
440
438
"logs-settings" ,
441
439
"logs-mappings" ,
@@ -446,6 +444,9 @@ def is_xpack_template(name):
446
444
"synthetics-settings" ,
447
445
"synthetics-mappings" ,
448
446
".snapshot-blob-cache" ,
447
+ "ilm-history" ,
448
+ "logstash-index-template" ,
449
+ "security-index-template" ,
449
450
"data-streams-mappings" ,
450
451
}:
451
452
return True
You can’t perform that action at this time.
0 commit comments