@@ -50,7 +50,7 @@ def extract_indices(self, workload_path):
50
50
def extract (self , outdir , index_pattern ):
51
51
"""
52
52
Extracts and writes index settings and
53
- mappings to "index .json" in a workload
53
+ mappings to "<index_name> .json" in a workload
54
54
:param outdir: destination directory
55
55
:param index_pattern: name of index or index pattern
56
56
:return: Dictionary of template variables corresponding to the
@@ -85,7 +85,7 @@ def extract_index_mapping_and_settings(self, index_pattern):
85
85
# the response might contain multiple indices if a wildcard was provided
86
86
response = self .client .indices .get (index_pattern )
87
87
for index , details in response .items ():
88
- valid , reason = self .is_valid (index )
88
+ valid , reason = self .is_valid_index (index )
89
89
if valid :
90
90
mappings = details ["mappings" ]
91
91
index_settings = self .filter_ephemeral_index_settings (details ["settings" ]["index" ])
@@ -122,7 +122,7 @@ def update_index_setting_parameters(self, settings):
122
122
settings [s ] = param .format (orig = orig_value )
123
123
124
124
125
- def is_valid (self , index_name ):
125
+ def is_valid_index (self , index_name ):
126
126
if len (index_name ) == 0 :
127
127
return False , "Index name is empty"
128
128
if index_name .startswith ("." ):
0 commit comments