Skip to content

Commit c8a6282

Browse files
committed
revert: remove ctx with value calls as they're not needed
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
1 parent 020e4ac commit c8a6282

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/ci-clean/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ func deleteKeys(ctx context.Context, metalClient *packet.Client, keys metal.SSHK
179179
}
180180

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

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

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

202200
for _, lb := range lbs.Loadbalancers {

0 commit comments

Comments
 (0)