diff --git a/plugins/commands/winrm/command.rb b/plugins/commands/winrm/command.rb index 7e354f542..dd19109db 100644 --- a/plugins/commands/winrm/command.rb +++ b/plugins/commands/winrm/command.rb @@ -41,8 +41,7 @@ module VagrantPlugins with_target_vms(argv, single_target: true) do |machine| if machine.config.vm.communicator != :winrm - raise Vagrant::Errors::WinRMInvalidCommunicator, - communicator: machine.config.vm.communicator + raise Vagrant::Errors::WinRMInvalidCommunicator end opts = { diff --git a/templates/locales/en.yml b/templates/locales/en.yml index e5922e582..28e0592e2 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1707,8 +1707,7 @@ en: to start the virtual machine. winrm_invalid_communicator: |- The winrm command requires a WinRM communicator to be used when connecting - to the guest. The guest is currently using a %{communicator} communicator. - Please update your configuration and try the command again. + to the guest. Please update your configuration and try the command again. wsl_vagrant_version_mismatch: |- Vagrant cannot currently enable access to manage machines within the Windows environment because the version of Vagrant installed on Windows does not