plugins/communicators/winrm/helper.rb in vagrant-unbundled-2.2.9.0 vs plugins/communicators/winrm/helper.rb in vagrant-unbundled-2.2.10.0
- old
+ new
@@ -56,10 +56,10 @@
# Search by guest port if we can. We use a provider capability
# if we have it. Otherwise, we just scan the Vagrantfile defined
# ports.
port = nil
if machine.provider.capability?(:forwarded_ports)
- machine.provider.capability(:forwarded_ports).each do |host, guest|
+ Array(machine.provider.capability(:forwarded_ports)).each do |host, guest|
if guest == machine.config.winrm.guest_port
port = host
break
end
end