From 796ff7b19078c854df1c93743e9c15699da236c3 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 5 Nov 2018 14:12:16 -0800 Subject: [PATCH] Remove logger from windows hostname cap --- plugins/guests/windows/cap/change_host_name.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/guests/windows/cap/change_host_name.rb b/plugins/guests/windows/cap/change_host_name.rb index 656a8805b..fdc0e4baa 100644 --- a/plugins/guests/windows/cap/change_host_name.rb +++ b/plugins/guests/windows/cap/change_host_name.rb @@ -12,7 +12,6 @@ module VagrantPlugins # If the configured name matches the current name, then bail # We cannot use %ComputerName% because it truncates at 15 chars return if machine.communicate.test("if ([System.Net.Dns]::GetHostName() -eq '#{name}') { exit 0 } exit 1") - @logger = Log4r::Logger.new("vagrant::windows::change_host_name") # Rename and reboot host if rename succeeded script = <<-EOH