fix: separate OCI cleanup resource identifiers
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-26 14:28:40 -06:00
parent fab0596b74
commit cc348dfc04
1 changed files with 2 additions and 2 deletions

View File

@ -25,14 +25,14 @@ region="${LAB_OCI_REGION:-${OCI_CLI_REGION:-}}"
oci_json_ids() {
local command_json="$(cat)"
python3 -c 'import json,sys; raw=sys.stdin.read().strip(); data=json.loads(raw) if raw else {}; print("\\n".join(x["id"] for x in data.get("data", [])))' <<<"${command_json}"
python3 -c 'import json,sys; raw=sys.stdin.read().strip(); data=json.loads(raw) if raw else {}; print("\n".join(x["id"] for x in data.get("data", [])))' <<<"${command_json}"
}
mapfile -t compartments < <(
printf '%s\n' "${tenancy}"
"${oci_bin}" iam compartment list --compartment-id "${tenancy}" \
--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["id"] for x in data.get("data", [])))'
| python3 -c 'import json,sys; raw=sys.stdin.read().strip(); data=json.loads(raw) if raw else {}; print("\n".join(x["id"] for x in data.get("data", [])))'
)
declare -a instances=() boot_volumes=() block_volumes=() public_ips=() vcns=()