mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Merge pull request #900 from abuchanan920/network-config-fix
Fixes issue of vagrant not assigned requested IP address.
This commit is contained in:
commit
5ab02e5b4c
@ -117,7 +117,7 @@ module VagrantPlugins
|
|||||||
def self.match_by_name(machine)
|
def self.match_by_name(machine)
|
||||||
match = {}
|
match = {}
|
||||||
machine.communicate.tap do |comm|
|
machine.communicate.tap do |comm|
|
||||||
comm.sudo("ifconfig -a | grep ^en | cut -f1 -d:") do |_, result|
|
comm.sudo("ifconfig -a | grep '^en\\|^eth' | cut -f1 -d:") do |_, result|
|
||||||
result.split("\n").each_with_index do |name, interface|
|
result.split("\n").each_with_index do |name, interface|
|
||||||
match[interface] = "Name=#{name}"
|
match[interface] = "Name=#{name}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user