Skip to content

Commit

Permalink
revert: remove ctx with value calls as they're not needed
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
  • Loading branch information
cprivitere committed Jun 27, 2024
1 parent 020e4ac commit c8a6282
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/ci-clean/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func deleteKeys(ctx context.Context, metalClient *packet.Client, keys metal.SSHK
}

func deleteEMLBPools(ctx context.Context, emlbClient *emlb.EMLB, pools *lbaas.LoadBalancerPoolCollection) error {
ctx = context.WithValue(ctx, lbaas.ContextOAuth2, emlbClient.TokenExchanger)
var errs []error

for _, pool := range pools.Pools {
Expand All @@ -196,7 +195,6 @@ func deleteEMLBPools(ctx context.Context, emlbClient *emlb.EMLB, pools *lbaas.Lo
}

func deleteEMLBs(ctx context.Context, emlbClient *emlb.EMLB, lbs *lbaas.LoadBalancerCollection) error {
ctx = context.WithValue(ctx, lbaas.ContextOAuth2, emlbClient.TokenExchanger)
var errs []error

for _, lb := range lbs.Loadbalancers {
Expand Down

0 comments on commit c8a6282

Please sign in to comment.