Skip to content

Commit

Permalink
chore: allow continued use of stop context for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jul 24, 2024
1 parent e2b34f2 commit e5c6314
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions equinix/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ func configureProvider(ctx context.Context, d *schema.ResourceData, p *schema.Pr
config.TerraformVersion = "0.11+compatible"
}

// We need to keep using a global stop context until
// all resources and data sources are updated to use
// context-aware CRUD functions, which should happen
// gradually due to linting on those files
// nolint:staticcheck
stopCtx, ok := schema.StopContext(ctx)
if !ok {
stopCtx = ctx
Expand Down

0 comments on commit e5c6314

Please sign in to comment.