fix: correct case-sensitive host match in runner capacity defaults

The case statement matched uppercase UNRAID/FEDORA but $r_host is always
lowercase from validate_runner_host(). Unraid and Fedora runners were
silently falling through to the default capacity of 1 instead of 2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
S
2026-03-01 11:01:50 -05:00
parent d2e5a62510
commit 16892d633f

View File

@@ -461,8 +461,8 @@ for ((i = 0; i < runner_count; i++)); do
if [[ -z "$cap_default" ]]; then if [[ -z "$cap_default" ]]; then
# Smart defaults per host type # Smart defaults per host type
case "$r_host" in case "$r_host" in
UNRAID) cap_default=2 ;; unraid) cap_default=2 ;;
FEDORA) cap_default=2 ;; fedora) cap_default=2 ;;
*) cap_default=1 ;; # macOS / native *) cap_default=1 ;; # macOS / native
esac esac
fi fi