lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.4.0 vs lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.4.1
- old
+ new
@@ -95,14 +95,16 @@
def get_domain_ipaddress(machine, domain)
if @machine.provider_config.qemu_use_session
return get_ipaddress_from_system domain.mac
end
- # Get IP address from arp table
+ # Get IP address from dhcp leases table
begin
ip_address = get_ipaddress_from_domain(domain)
rescue Fog::Errors::TimeoutError
@logger.info('Timeout at waiting for an ip address for machine %s' % machine.name)
+
+ raise
end
unless ip_address
@logger.info('No arp table entry found for machine %s' % machine.name)
return nil