mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
[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:
commit
0d2b2fcd02
@ -93,7 +93,7 @@ module VagrantPlugins
|
|||||||
-N
|
-N
|
||||||
#{ssh_info[:host]}
|
#{ssh_info[:host]}
|
||||||
)
|
)
|
||||||
params += '-g' if gateway_ports
|
params <<= '-g' if gateway_ports
|
||||||
|
|
||||||
options = (%W(
|
options = (%W(
|
||||||
User=#{ssh_info[:username]}
|
User=#{ssh_info[:username]}
|
||||||
|
Loading…
Reference in New Issue
Block a user