This commit is contained in:
Boris 2023-04-28 21:52:38 +03:00
parent 5b5cbf5b9b
commit b65ea34264
2 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -129,3 +129,4 @@ dmypy.json
.pyre/
.howtobuild
examples/restore-s3.yml

View File

@ -2,6 +2,7 @@
import logging
import re
import time
import fnmatch
from copy import deepcopy
from datetime import datetime
from opensearchpy.exceptions import ConflictError, RequestError
@ -1935,12 +1936,13 @@ class Restore(object):
found_count = 0
missing = []
for index in self.expected_output:
if index in all_indices:
for item in all_indices:
if fnmatch.fnmatch(item, index):
found_count += 1
self.loggit.info('Found restored index {0}'.format(index))
else:
else:
missing.append(index)
if found_count == len(self.expected_output):
if found_count >= len(self.expected_output):
self.loggit.info('All indices appear to have been restored.')
else:
msg = (