lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.10.7 vs lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.10.8

- old
+ new

@@ -232,15 +232,15 @@ response = libvirt_domain.qemu_agent_command('{"execute":"guest-network-get-interfaces"}', timeout) @logger.debug('Got Response from qemu agent') @logger.debug(response) addresses = JSON.parse(response) rescue StandardError => e - puts "Unable to receive IP via qemu agent: [#{e.message}]" @logger.debug("Unable to receive IP via qemu agent: [#{e.message}]") end unless addresses.nil? addresses['return'].each do |interface| + next unless interface.key?('hardware-address') next unless domain.mac.downcase == interface['hardware-address'].downcase @logger.debug("Found matching interface: [#{interface['name']}]") next unless interface.key?('ip-addresses')