lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.7.0 vs lib/vagrant-libvirt/driver.rb in vagrant-libvirt-0.8.0
- old
+ new
@@ -133,10 +133,12 @@
@logger.debug("Machine #{machine.id} not found #{e}.")
return :not_created
end
# TODO: terminated no longer appears to be a valid fog state, remove?
- return :not_created if domain.nil? || domain.state.to_sym == :terminated
+ return :not_created if domain.nil?
+ return :unknown if domain.state.nil?
+ return :not_created if domain.state.to_sym == :terminated
state = domain.state.tr('-', '_').to_sym
if state == :running
begin
get_domain_ipaddress(machine, domain)