Resolve OCI edge IP from state instance

This commit is contained in:
juvenal.diaz 2026-10-28 20:01:49 -06:00
parent 53f6fa7dea
commit 0507b06c9b
1 changed files with 2 additions and 1 deletions

View File

@ -8031,7 +8031,8 @@ refresh_oci_edge_endpoint() {
discovered_edge_instance_id="${LAB_OCI_EDGE_INSTANCE_ID:-}"
fi
fi
if [[ "${LAB_OCI_EDGE_INSTANCE_MANAGED:-false}" == "true" &&
if [[ ( "${LAB_OCI_EDGE_INSTANCE_MANAGED:-false}" == "true" ||
"${LAB_OCI_FOUNDATION_ENABLED:-false}" == "true" ) &&
-n "${discovered_edge_instance_id}" && "${discovered_edge_instance_id}" != "null" ]] &&
declare -F oci_cli_resolve >/dev/null 2>&1; then
oci_bin="$(oci_cli_resolve 2>/dev/null || true)"