diff --git a/communicator/winrm/communicator.go b/communicator/winrm/communicator.go index f8aaa4338..c0676d01f 100644 --- a/communicator/winrm/communicator.go +++ b/communicator/winrm/communicator.go @@ -36,7 +36,7 @@ func New(config *Config) (*Communicator, error) { } // Create the client - params := winrm.DefaultParameters + params := *winrm.DefaultParameters if config.TransportDecorator != nil { params.TransportDecorator = config.TransportDecorator @@ -44,7 +44,7 @@ func New(config *Config) (*Communicator, error) { params.Timeout = formatDuration(config.Timeout) client, err := winrm.NewClientWithParameters( - endpoint, config.Username, config.Password, params) + endpoint, config.Username, config.Password, ¶ms) if err != nil { return nil, err }