lib/kamal/cli/build.rb in kamal-1.8.0 vs lib/kamal/cli/build.rb in kamal-1.8.1

- old
+ new

@@ -138,10 +138,10 @@ def mirror_hosts if KAMAL.hosts.many? mirror_hosts = Concurrent::Hash.new on(KAMAL.hosts) do |host| first_mirror = capture_with_info(*KAMAL.builder.first_mirror).strip.presence - mirror_hosts[first_mirror] ||= host if first_mirror + mirror_hosts[first_mirror] ||= host.to_s if first_mirror rescue SSHKit::Command::Failed => e raise unless e.message =~ /error calling index: reflect: slice index out of range/ end mirror_hosts.values else