providers/virtualbox: nitpick on style

This commit is contained in:
Mitchell Hashimoto 2013-11-23 16:16:45 -08:00
parent 56eb53d8af
commit cfe17076b5
2 changed files with 6 additions and 4 deletions

View File

@ -26,7 +26,8 @@ module VagrantPlugins
end
begin
env[:machine].provider.driver.execute_command(processed_command + [:retryable => true])
env[:machine].provider.driver.execute_command(
processed_command + [retryable: true])
rescue Vagrant::Errors::VBoxManageError => e
raise Vagrant::Errors::VMCustomizationFailed, {
:command => command,

View File

@ -64,7 +64,8 @@ module VagrantPlugins
# @param [String] log Log message to write.
def attempt_and_log(command, log)
begin
@env[:machine].provider.driver.execute_command(command + [:retryable => true])
@env[:machine].provider.driver.execute_command(
command + [retryable: true])
rescue Vagrant::Errors::VBoxManageError => e
@logger.info("#{log} (error = #{e.inspect})")
end