mirror of https://github.com/kubernetes/kops.git
Replace deprecated aws.BackgroundContext with context.Background
aws.BackgroundContext was intended for go 1.6 and earlier.
This commit is contained in:
parent
d6cb49747c
commit
fc6d9aa656
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue