handle failed snapshot created

This commit is contained in:
Simon
2024-12-27 21:52:38 +07:00
parent a4435fdd60
commit 69875c42b9

View File

@@ -150,7 +150,7 @@ class ElasticSnapshot:
if statuscode == 200:
print(f"snapshot: executing now: {response}")
if wait:
if wait and "snapshot_name" in response:
self._wait_for_snapshot(response["snapshot_name"])
return response