Replace deprecated aws.BackgroundContext with context.Background

aws.BackgroundContext was intended for go 1.6 and earlier.
This commit is contained in:
justinsb 2022-01-30 13:19:06 -05:00
parent d6cb49747c
commit fc6d9aa656
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ limitations under the License.
package awsup
import (
"context"
"fmt"
"strconv"
"strings"
@ -594,7 +595,7 @@ func deregisterInstance(c AWSCloud, i *cloudinstances.CloudInstance) error {
loadBalancerNames := aws.StringValueSlice(asgDetails.AutoScalingGroups[0].LoadBalancerNames)
targetGroupArns := aws.StringValueSlice(asgDetails.AutoScalingGroups[0].TargetGroupARNs)
eg, _ := errgroup.WithContext(aws.BackgroundContext())
eg, _ := errgroup.WithContext(context.Background())
if len(loadBalancerNames) != 0 {
eg.Go(func() error {