fix: prefer tagged OCI edge over stale state
This commit is contained in:
parent
3080289280
commit
5246b8107c
|
|
@ -8039,7 +8039,9 @@ refresh_oci_edge_endpoint() {
|
|||
# State may have been lost even though the Jeannie-created instance still
|
||||
# exists. Recover only the exact managed identity: display name
|
||||
# homelab-edge plus managed_by=jeannie. Never adopt arbitrary jump boxes.
|
||||
if [[ -z "${discovered_edge_instance_id}" && -n "${LAB_OCI_TENANCY_ID:-}" ]] &&
|
||||
if [[ -n "${LAB_OCI_TENANCY_ID:-}" &&
|
||||
"${LAB_OCI_EDGE_EXISTING_INSTANCE_ID:-}" == "" &&
|
||||
"${LAB_OCI_EDGE_INSTANCE_MANAGED:-false}" != "true" ]] &&
|
||||
declare -F oci_cli_resolve >/dev/null 2>&1; then
|
||||
oci_bin="${oci_bin:-$(oci_cli_resolve 2>/dev/null || true)}"
|
||||
if [[ -n "${oci_bin}" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue