lib/vagrant-libvirt/action/halt_domain.rb in vagrant-libvirt-0.0.30 vs lib/vagrant-libvirt/action/halt_domain.rb in vagrant-libvirt-0.0.31

- old
+ new

@@ -11,10 +11,10 @@ end def call(env) env[:ui].info(I18n.t("vagrant_libvirt.halt_domain")) - domain = env[:libvirt_compute].servers.get(env[:machine].id.to_s) + domain = env[:machine].provider.driver.connection.servers.get(env[:machine].id.to_s) raise Errors::NoDomainError if domain == nil @logger.info("Trying gracefull shutdown.") domain.shutdown begin