Load persisted OCI inputs before edge discovery
This commit is contained in:
parent
e0a7f8381f
commit
53f6fa7dea
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue