From 5246b8107c5d6578cab7f78f02c48033f46bc497 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Wed, 28 Oct 2026 13:08:47 -0600 Subject: [PATCH] fix: prefer tagged OCI edge over stale state --- lib/jeannie/pipeline.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index fb04da1..c582075 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -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