mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
fix(i18n): translate managed stack routing errors
This commit is contained in:
@@ -317,7 +317,7 @@ def install_public_routes(services, primary_id, bridge):
|
||||
continue
|
||||
destination = str(ipaddress.IPv4Interface(address).ip)
|
||||
if destination in targets:
|
||||
raise RuntimeError('Duplicate stack frontend address')
|
||||
raise RuntimeError(translate('Duplicate stack frontend address'))
|
||||
targets[destination] = service
|
||||
if not targets:
|
||||
return
|
||||
|
||||
@@ -2112,8 +2112,8 @@ apply_kept_settings
|
||||
if jq -e '.stack_public_routes != null' "$DEPLOYMENT_FILE" >/dev/null; then
|
||||
ROUTE_INCLUDE=$(python3 "${SCRIPT_DIR}/oci_stack_public_routes.py" install "$VMID" \
|
||||
--deployment "$DEPLOYMENT_FILE" --installation-id "$INSTANCE_ID") \
|
||||
|| die "Managed public route installation failed"
|
||||
[[ -n "$ROUTE_INCLUDE" ]] || die "Managed public route include is missing"
|
||||
|| die "$(translate "Managed public route installation failed")"
|
||||
[[ -n "$ROUTE_INCLUDE" ]] || die "$(translate "Managed public route include is missing")"
|
||||
grep -Fxq "$ROUTE_INCLUDE" "$CONF" || printf '%s\n' "$ROUTE_INCLUDE" >>"$CONF"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user