Merge pull request #8209 from dvrkps/patch-3

Ignore retry.Config var
This commit is contained in:
Adrien Delorme 2019-10-15 10:29:51 +02:00 committed by GitHub
commit d2f5daf98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
resourceType,
resourceName))
err := retry.Config{
retry.Config{
Tries: 10,
RetryDelay: (&retry.Backoff{InitialBackoff: 10 * time.Second, MaxBackoff: 600 * time.Second, Multiplier: 2}).Linear,
}.Run(ctx, func(ctx context.Context) error {
@ -106,7 +106,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
if err != nil {
s.reportIfError(err, resourceName)
}
return err
return nil
})
if err = deploymentOperations.Next(); err != nil {