Fix new-style Network Device Naming on CentOS7+VMwarefusion

This commit is contained in:
Masahiro Ono 2014-12-21 16:25:11 +09:00
parent 919aa70c5d
commit 55a90445cd
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|