Handle structured missing-object responses in pipeline inventory
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user