Merge pull request #5691 from bergman/list-of-nics-to-bridge-to

This commit is contained in:
Seth Vargo 2015-05-30 12:02:17 -07:00
commit 9dddcdb8de
1 changed files with 9 additions and 7 deletions

View File

@ -157,7 +157,7 @@ module VagrantPlugins
@logger.debug("Bridge was directly specified in config, searching for: #{config[:bridge]}")
# Search for a matching bridged interface
bridge = config[:bridge]
Array(config[:bridge]).each do |bridge|
bridge = bridge.downcase if bridge.respond_to?(:downcase)
bridgedifs.each do |interface|
if bridge === interface[:name].downcase
@ -166,6 +166,8 @@ module VagrantPlugins
break
end
end
break if chosen_bridge
end
# If one wasn't found, then we notify the user here.
if !chosen_bridge