clean and return nil for retry.Config
This commit is contained in:
parent
4c615341ef
commit
29a6938de6
|
@ -95,7 +95,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
|
||||||
resourceType,
|
resourceType,
|
||||||
resourceName))
|
resourceName))
|
||||||
|
|
||||||
_ = retry.Config{
|
retry.Config{
|
||||||
Tries: 10,
|
Tries: 10,
|
||||||
RetryDelay: (&retry.Backoff{InitialBackoff: 10 * time.Second, MaxBackoff: 600 * time.Second, Multiplier: 2}).Linear,
|
RetryDelay: (&retry.Backoff{InitialBackoff: 10 * time.Second, MaxBackoff: 600 * time.Second, Multiplier: 2}).Linear,
|
||||||
}.Run(ctx, func(ctx context.Context) error {
|
}.Run(ctx, func(ctx context.Context) error {
|
||||||
|
@ -106,7 +106,7 @@ func (s *StepDeleteResourceGroup) deleteDeploymentResources(ctx context.Context,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.reportIfError(err, resourceName)
|
s.reportIfError(err, resourceName)
|
||||||
}
|
}
|
||||||
return err
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
if err = deploymentOperations.Next(); err != nil {
|
if err = deploymentOperations.Next(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue