Skip to content

Commit

Permalink
allow continued use of StopContext to avoid a massive change
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jul 17, 2024
1 parent 11078c2 commit 02f8c71
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 @@ -184,6 +184,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 02f8c71

Please sign in to comment.