diff --git a/plugins/communicators/winrm/shell.rb b/plugins/communicators/winrm/shell.rb index c6d626448..8889819b2 100644 --- a/plugins/communicators/winrm/shell.rb +++ b/plugins/communicators/winrm/shell.rb @@ -45,7 +45,7 @@ module VagrantPlugins @logger.debug("initializing WinRMShell") @host = host - @port = options[:port] || options[:ssl] ? 5986 : 5985 + @port = options[:port] || (options[:ssl] ? 5986 : 5985) @username = username @password = password @timeout_in_seconds = options[:timeout_in_seconds] || 60