diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index 2794534..60ecfe2 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -7970,6 +7970,12 @@ platform_apply() { edge_apply() { require_debian_server "edge" + # The remote API is a long-lived service and does not inherit the shell's + # OCI exports. Load the persisted foundation inputs before endpoint + # discovery so recreated instances are resolved before any SSH connection. + if declare -F oci_foundation_load_config >/dev/null 2>&1; then + oci_foundation_load_config + fi local configured_edge_key="${LAB_EDGE_SSH_KEY_PATH:-${LAB_OCI_SSH_PRIVATE_KEY:-}}" if [[ -n "${configured_edge_key}" ]]; then