From cfe17076b5fb3b9f344905688d545b02a25642bf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 23 Nov 2013 16:16:45 -0800 Subject: [PATCH] providers/virtualbox: nitpick on style --- plugins/providers/virtualbox/action/customize.rb | 3 ++- plugins/providers/virtualbox/action/sane_defaults.rb | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/providers/virtualbox/action/customize.rb b/plugins/providers/virtualbox/action/customize.rb index f2bfda255..25ec7fc5f 100644 --- a/plugins/providers/virtualbox/action/customize.rb +++ b/plugins/providers/virtualbox/action/customize.rb @@ -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, diff --git a/plugins/providers/virtualbox/action/sane_defaults.rb b/plugins/providers/virtualbox/action/sane_defaults.rb index 1dcac0a74..36f5d5e8d 100644 --- a/plugins/providers/virtualbox/action/sane_defaults.rb +++ b/plugins/providers/virtualbox/action/sane_defaults.rb @@ -37,9 +37,9 @@ module VagrantPlugins command = ["modifyvm", env[:machine].id, "--natdnsproxy1", "on"] attempt_and_log(command, "Enable the NAT DNS proxy on adapter 1...") else - command = [ "modifyvm", env[:machine].id, "--natdnsproxy1", "off" ] + command = ["modifyvm", env[:machine].id, "--natdnsproxy1", "off" ] attempt_and_log(command, "Disable the NAT DNS proxy on adapter 1...") - command = [ "modifyvm", env[:machine].id, "--natdnshostresolver1", "off" ] + command = ["modifyvm", env[:machine].id, "--natdnshostresolver1", "off" ] attempt_and_log(command, "Disable the NAT DNS resolver on adapter 1...") end else @@ -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