diff --git a/apps/managedidentity/managedidentity.go b/apps/managedidentity/managedidentity.go index 1adf6e36..e4a75572 100644 --- a/apps/managedidentity/managedidentity.go +++ b/apps/managedidentity/managedidentity.go @@ -224,10 +224,9 @@ func retry(maxRetries int, c ops.HTTPClient, req *http.Request) (*http.Response, if attempt == maxRetries-1 { return resp, err } - if resp != nil && resp.Body != nil { - io.Copy(io.Discard, resp.Body) - resp.Body.Close() - } + io.Copy(io.Discard, resp.Body) + resp.Body.Close() + delay := time.Duration(time.Second) time.Sleep(delay) }