backport GH-3277 fix for missing interpolation to older drivers

The original fix for the "missing interpolation argument :stderr" bug
was in d4b3f226, but it only addressed the driver for VirtualBox 4.3:

  https://github.com/mitchellh/vagrant/issues/3277

This backports the fix to the drivers for VirtualBox 4.0, 4.1, and 4.2.
This commit is contained in:
Adam Spiers 2014-04-30 14:02:30 +01:00
parent 4381b292f5
commit 082bf37df8
3 changed files with 9 additions and 3 deletions

View File

@ -470,7 +470,9 @@ module VagrantPlugins
end
# If we reached this point then it didn't work out.
raise Vagrant::Errors::VBoxManageError, :command => command.inspect
raise Vagrant::Errors::VBoxManageError,
command: command.inspect,
stderr: r.stderr
end
def suspend

View File

@ -480,7 +480,9 @@ module VagrantPlugins
end
# If we reached this point then it didn't work out.
raise Vagrant::Errors::VBoxManageError, :command => command.inspect
raise Vagrant::Errors::VBoxManageError,
command: command.inspect,
stderr: r.stderr
end
def suspend

View File

@ -504,7 +504,9 @@ module VagrantPlugins
end
# If we reached this point then it didn't work out.
raise Vagrant::Errors::VBoxManageError, :command => command.inspect
raise Vagrant::Errors::VBoxManageError,
command: command.inspect,
stderr: r.stderr
end
def suspend