mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-26 19:41:06 -05:00
debug should retry
This commit is contained in:
parent
297abc3e84
commit
c943ff00a2
1 changed files with 5 additions and 1 deletions
6
vendor/github.com/aws/aws-sdk-go/aws/request/request.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/aws/request/request.go
generated
vendored
|
|
@ -4,6 +4,7 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
|
|
@ -565,7 +566,10 @@ type temporary interface {
|
|||
Temporary() bool
|
||||
}
|
||||
|
||||
func shouldRetryCancel(err error) bool {
|
||||
func shouldRetryCancel(err error) (shouldRetry bool) {
|
||||
defer func() {
|
||||
log.Printf("shouldRetry returned %t with %#v", shouldRetry, err)
|
||||
}()
|
||||
switch err := err.(type) {
|
||||
case awserr.Error:
|
||||
if err.Code() == CanceledErrorCode {
|
||||
|
|
|
|||
Loading…
Reference in a new issue