Skip to content

Commit 2ca1f26

Browse files
fg-jAustina Lin
andcommitted
CanReachVM now passes along tcp dial error
for increased visibility into network connection problems [#172774982](https://www.pivotaltracker.com/story/show/172774982) Interrupt Siemens Healthineers stembuild construct fails on enabling WinRM step Co-authored-by: Austina Lin <aulin@pivotal.io>
1 parent 8e6404b commit 2ca1f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remotemanager/winrm_remotemanager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewWinRM(host string, username string, password string, clientFactory WinRM
4040
func (w *WinRM) CanReachVM() error {
4141
conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", w.host, WinRmPort), time.Duration(time.Second*60))
4242
if err != nil {
43-
return fmt.Errorf("host %s is unreachable. Please ensure WinRM is enabled and the IP is correct", w.host)
43+
return fmt.Errorf("host %s is unreachable. Please ensure WinRM is enabled and the IP is correct: %s", w.host, err)
4444
}
4545
conn.Close()
4646
return nil

0 commit comments

Comments
 (0)