[Fix] forward_ports.rb: no implicit conversion of String into Array (#1706)

Fixes a TypeError due to attempting to add a string to an array instead of
appending as a new element when gateway ports are set.
This commit is contained in:
Darragh Bailey 2023-01-22 14:00:54 +00:00 committed by GitHub
commit 0d2b2fcd02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ module VagrantPlugins
-N
#{ssh_info[:host]}
)
params += '-g' if gateway_ports
params <<= '-g' if gateway_ports
options = (%W(
User=#{ssh_info[:username]}