From afb339e1ee7359855bd7951e0fbd0bc38ce7b8f7 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Wed, 28 Oct 2026 21:15:21 -0600 Subject: [PATCH] Parse OCI compartment IDs for edge recovery --- lib/jeannie/pipeline.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index 66e7740..637a3a8 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -8162,8 +8162,11 @@ refresh_oci_edge_endpoint() { [[ -n "${candidate_compartment}" ]] && edge_compartments+=("${candidate_compartment}") done < <("${oci_bin}" iam compartment list \ --compartment-id "${tenancy_id}" \ - --compartment-id-in-subtree true --all \ - --query 'data[].id' --raw-output 2>/dev/null || true) + --compartment-id-in-subtree true --all --output json 2>/dev/null \ + | python3 -c 'import json,sys +raw=sys.stdin.read().strip() +data=json.loads(raw) if raw else {} +print("\\n".join(x.get("id", "") for x in data.get("data", [])))' 2>/dev/null || true) edge_compartments+=("${tenancy_id}") fi for candidate_compartment in "${edge_compartments[@]}"; do