mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 18:24:01 -04:00
Make communicator's WinRM defaults more intuitive when using SSL.
This commit is contained in:
@@ -137,7 +137,9 @@ func (c *Config) prepareSSH(ctx *interpolate.Context) []error {
|
||||
}
|
||||
|
||||
func (c *Config) prepareWinRM(ctx *interpolate.Context) []error {
|
||||
if c.WinRMPort == 0 {
|
||||
if c.WinRMPort == 0 && c.WinRMUseSSL {
|
||||
c.WinRMPort = 5986
|
||||
} else if c.WinRMPort == 0 {
|
||||
c.WinRMPort = 5985
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user