Merged fix-issue-in-search into master

This commit is contained in:
Anatoly Bogatyrev 2020-11-29 07:09:13 +03:00
commit 2958a81590

View file

@ -1037,7 +1037,7 @@ def _search_object(node:str, private_key: str, cid:str, oid: str):
if re.search(r'local node is outside of object placement', e.output): if re.search(r'local node is outside of object placement', e.output):
logger.error("Server is not presented in container.") logger.error("Server is not presented in container.")
if ( re.search(r'timed out after 30 seconds', e.output) or re.search(r'no route to host', e.output) ): elif ( re.search(r'timed out after 30 seconds', e.output) or re.search(r'no route to host', e.output) ):
logger.warn("Node is unavailable") logger.warn("Node is unavailable")
else: else: