diff --git a/builder/digitalocean/api_v2.go b/builder/digitalocean/api_v2.go index a8c0e97ae..30fca2be7 100644 --- a/builder/digitalocean/api_v2.go +++ b/builder/digitalocean/api_v2.go @@ -330,7 +330,7 @@ func NewRequestV2(d DigitalOceanClientV2, path string, method string, req interf resp.StatusCode, body)) } switch resp.StatusCode { - case 403, 429, 422, 404, 503, 500: + case 403, 401, 429, 422, 404, 503, 500: return errors.New(fmt.Sprintf("digitalocean request error: %+v", res)) } return nil