validate backup before creating blank index
This commit is contained in:
parent
3b7e4c9266
commit
bb271e276c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue