From 271703f36301423f65f08fa2ac694a5edb4d23ee Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Tue, 27 Oct 2026 16:00:42 -0600 Subject: [PATCH] fix: sanitize persisted OCI bastion discovery errors --- lib/jeannie/commands.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/jeannie/commands.sh b/lib/jeannie/commands.sh index 323c227..df71705 100644 --- a/lib/jeannie/commands.sh +++ b/lib/jeannie/commands.sh @@ -3737,6 +3737,9 @@ oci_foundation_reconcile_existing() { # Existing VCNs may outlive the local state file. Use the VCN owner # compartment for discovery and avoid creating a duplicate Bastion. + if [[ "${LAB_OCI_BASTION_ID:-}" == Usage:* || "${LAB_OCI_BASTION_ID:-}" == *"Error:"* ]]; then + unset LAB_OCI_BASTION_ID + fi if truthy "${LAB_OCI_BASTION_ENABLED:-true}" && [[ -z "${LAB_OCI_BASTION_ID:-}" ]]; then local bastion_compartment_id="${LAB_OCI_COMPARTMENT_ID:-${LAB_OCI_TENANCY_ID:-}}" if [[ -n "${LAB_OCI_EXISTING_VCN_ID:-}" ]]; then