forked from mtusi2026/mtusi2026lab5
Handle structured missing-object responses in pipeline inventory
This commit is contained in:
@@ -262,7 +262,7 @@ class Stack:
|
|||||||
timeout=60,
|
timeout=60,
|
||||||
check=False,
|
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":
|
if missing and done.returncode == 5 and body.get("details", {}).get("type") == "not_found":
|
||||||
return None
|
return None
|
||||||
check(done.returncode == 0, "S3 inventory command failed: exit " + str(done.returncode))
|
check(done.returncode == 0, "S3 inventory command failed: exit " + str(done.returncode))
|
||||||
|
|||||||
Reference in New Issue
Block a user