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.
This commit is contained in:
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…
Reference in New Issue