Simplify dnsmasq leases lookup
This commit is contained in:
parent
4bb70fb252
commit
1ef2c5bcad
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ module Vagrant
|
||||||
)
|
)
|
||||||
|
|
||||||
def read_dnsmasq_leases
|
def read_dnsmasq_leases
|
||||||
LEASES_PATHS.map do |path|
|
Dir["{#{LEASES_PATHS.join(',')}}"].map do |file|
|
||||||
File.read(path) if File.exists?(path)
|
File.read(file)
|
||||||
end.join("\n")
|
end.join("\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue