From afc138478d646a1cf1cf687bac66bb4f195e2065 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 12 Nov 2018 15:33:56 -0800 Subject: [PATCH] Add reset! method to winrm communicator --- plugins/communicators/winrm/communicator.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/communicators/winrm/communicator.rb b/plugins/communicators/winrm/communicator.rb index 14a742f5b..4c1fa8758 100644 --- a/plugins/communicators/winrm/communicator.rb +++ b/plugins/communicators/winrm/communicator.rb @@ -121,6 +121,10 @@ module VagrantPlugins return false end + def reset! + shell(true) + end + def shell(reload=false) @shell = nil if reload @shell ||= create_shell