Always resolve state-backed OCI edge instance IP
This commit is contained in:
parent
0507b06c9b
commit
ee6f2789fd
|
|
@ -8031,9 +8031,9 @@ refresh_oci_edge_endpoint() {
|
|||
discovered_edge_instance_id="${LAB_OCI_EDGE_INSTANCE_ID:-}"
|
||||
fi
|
||||
fi
|
||||
if [[ ( "${LAB_OCI_EDGE_INSTANCE_MANAGED:-false}" == "true" ||
|
||||
"${LAB_OCI_FOUNDATION_ENABLED:-false}" == "true" ) &&
|
||||
-n "${discovered_edge_instance_id}" && "${discovered_edge_instance_id}" != "null" ]] &&
|
||||
if [[ -n "${discovered_edge_instance_id}" &&
|
||||
"${discovered_edge_instance_id}" != "null" &&
|
||||
-n "${instance_compartment}" ]] &&
|
||||
declare -F oci_cli_resolve >/dev/null 2>&1; then
|
||||
oci_bin="$(oci_cli_resolve 2>/dev/null || true)"
|
||||
if [[ -n "${oci_bin}" && -n "${instance_compartment}" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue