validate backup before creating blank index

This commit is contained in:
Simon
2023-10-01 09:17:55 +07:00
parent 3b7e4c9266
commit bb271e276c

View File

@@ -152,6 +152,7 @@ class ElasitIndexWrap:
index_name, expected_map, expected_set = self._config_split(index)
handler = ElasticIndex(index_name, expected_map, expected_set)
if not handler.exists:
self._check_backup()
handler.create_blank()
continue