From 076cca4af741936eb39897350982c9d759eb230e Mon Sep 17 00:00:00 2001 From: Austin Parker Date: Tue, 5 Jul 2016 12:01:19 -0400 Subject: [PATCH] don't update non-running machines fix equality comparison --- lib/vagrant-hostmanager/action/update_all.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/vagrant-hostmanager/action/update_all.rb b/lib/vagrant-hostmanager/action/update_all.rb index ee87734..3f0366d 100644 --- a/lib/vagrant-hostmanager/action/update_all.rb +++ b/lib/vagrant-hostmanager/action/update_all.rb @@ -32,7 +32,10 @@ module VagrantPlugins @global_env.active_machines.each do |name, p| if p == @provider machine = @global_env.machine(name, p) - @updater.update_guest(machine) + state = machine.state + if state.short_description.eql? 'running' + @updater.update_guest(machine) + end end end end