Parse OCI compartment IDs for edge recovery
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-28 21:15:21 -06:00
parent a2de0a6b3b
commit afb339e1ee
1 changed files with 5 additions and 2 deletions

View File

@ -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