Merge pull request #5045 from tai-ga/centos7+fusion-new-ifname-style

Fix new-style Network Device Naming on CentOS7+VMwarefusion
This commit is contained in:
Seth Vargo 2014-12-21 11:43:41 -05:00
commit 467bf6575d
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module VagrantPlugins
end
interface_names = networks.map do |network|
"eth#{network[:interface]}"
"#{interface_names[network[:interface]]}"
end
else
machine.communicate.sudo("/usr/sbin/biosdevname -d | grep Kernel | cut -f2 -d: | sed -e 's/ //;'") do |_, result|