Handle structured missing-object responses in pipeline inventory

This commit is contained in:
Artyom
2026-11-06 09:49:20 +03:00
parent ac6c55809f
commit 389c159681
+1 -1
View File
@@ -262,7 +262,7 @@ class Stack:
timeout=60,
check=False,
)
body = json.loads(done.stdout)
body = json.loads(done.stdout or done.stderr)
if missing and done.returncode == 5 and body.get("details", {}).get("type") == "not_found":
return None
check(done.returncode == 0, "S3 inventory command failed: exit " + str(done.returncode))