From 52d8fddf38701dbc3aa1981d0ba38e13aa2cdae9 Mon Sep 17 00:00:00 2001 From: Peter Ericson Date: Tue, 3 Jun 2014 14:19:21 +1000 Subject: [PATCH] shell.rb: fix precedence --- plugins/communicators/winrm/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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