From 8456e91fbd683178386cc4d62431f28afe5a8f60 Mon Sep 17 00:00:00 2001 From: Paulo Bittencourt Date: Sun, 1 Jun 2014 15:39:40 -0400 Subject: [PATCH] remove redundant config argument from Updater initializer --- lib/vagrant-hostmanager/hosts_file.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index 4bf944f..0929981 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -5,18 +5,18 @@ module VagrantPlugins module HostsFile def update_guest(machine) - Updater.new(@global_env, @config, @provider).update_guest(machine) + Updater.new(@global_env, @provider).update_guest(machine) end def update_host - Updater.new(@global_env, @config, @provider).update_host + Updater.new(@global_env, @provider).update_host end class Updater - def initialize(global_env, config, provider) + def initialize(global_env, provider) @global_env = global_env - @config = config + @config = Util.get_config(@global_env) @provider = provider end