Load persisted OCI inputs before edge discovery

This commit is contained in:
juvenal.diaz 2026-10-28 19:45:58 -06:00
parent e0a7f8381f
commit 53f6fa7dea
1 changed files with 6 additions and 0 deletions

View File

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