Handle refresh errors.

This commit is contained in:
Stefan Schmidt 2018-01-10 16:40:20 +01:00
parent 096847c9f7
commit c200c170ad
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ func (b *Local) opRefresh(
doneCh := make(chan struct{})
go func() {
defer close(doneCh)
newState, err = tfCtx.Refresh()
log.Printf("[INFO] backend/local: plan calling Plan")
newState, refreshErr = tfCtx.Refresh()
log.Printf("[INFO] backend/local: refresh calling Refresh")
}()
select {