fix: recover managed edge despite stale existing input

This commit is contained in:
juvenal.diaz 2026-10-28 18:05:40 -06:00
parent 5246b8107c
commit bbb9c46ee8
1 changed files with 0 additions and 1 deletions

View File

@ -8040,7 +8040,6 @@ refresh_oci_edge_endpoint() {
# exists. Recover only the exact managed identity: display name
# homelab-edge plus managed_by=jeannie. Never adopt arbitrary jump boxes.
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)}"