Prevent busy loop while waiting for WinRM connection

Set first run variable outside conditional so it will properly be
updated during the first run and pause on subsequent runs.
pull/8213/head
Chris Roberts 7 years ago
parent 046f94c996
commit 8bb7d8dc16

@ -95,8 +95,8 @@ func (s *StepConnectWinRM) waitForWinRM(state multistep.StateBag, ctx context.Co
return nil, errors.New("WinRM wait cancelled")
case <-time.After(5 * time.Second):
}
first = false
}
first = false
host, err := s.Host(state)
if err != nil {

Loading…
Cancel
Save