validate backup before creating blank index

This commit is contained in:
Simon 2023-10-01 09:17:55 +07:00
parent 3b7e4c9266
commit bb271e276c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 0 deletions

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