diff --git a/lib/vagrant-lxc/action/fetch_ip_from_dnsmasq_leases.rb b/lib/vagrant-lxc/action/fetch_ip_from_dnsmasq_leases.rb index 9abb110..e9dd8f6 100644 --- a/lib/vagrant-lxc/action/fetch_ip_from_dnsmasq_leases.rb +++ b/lib/vagrant-lxc/action/fetch_ip_from_dnsmasq_leases.rb @@ -37,8 +37,8 @@ module Vagrant ) def read_dnsmasq_leases - LEASES_PATHS.map do |path| - File.read(path) if File.exists?(path) + Dir["{#{LEASES_PATHS.join(',')}}"].map do |file| + File.read(file) end.join("\n") end end