From 4e52facebc556bebbc429c8740cb86fb37a1ae62 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 May 2014 09:57:52 -0700 Subject: [PATCH] core: properly yield in locker --- lib/vagrant/machine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index 1438798cd..3c62e2a5a 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -154,7 +154,7 @@ module Vagrant # We only lock if we're not executing an SSH action. In the future # we will want to do more fine-grained unlocking in actions themselves # but for a 1.6.2 release this will work. - locker = Proc.new { |*args| yield } + locker = Proc.new { |*args, &block| block.call } locker = @env.method(:lock) if !name.to_s.start_with?("ssh") # Lock this machine for the duration of this action