From f058b3025f08cca3089465230c45cffd625d99c6 Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Thu, 2 May 2013 08:02:58 +0200 Subject: [PATCH] Fix small scoping issue. @logger is not available from the provisioner --- lib/vagrant-hostmanager/hosts_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index 99c1ca1..e7b4ce2 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -32,7 +32,7 @@ module VagrantPlugins host = machine.config.vm.hostname || name ip = get_ip_address.call(machine) host_aliases = machine.config.hostmanager.aliases.join("\s").chomp - @logger.info "Adding /etc/hosts entry: #{ip} #{host} #{host_aliases}" + machine.env.ui.info "Adding /etc/hosts entry: #{ip} #{host} #{host_aliases}" file << "#{ip}\t#{host}\s#{host_aliases}\n" end end