mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
backend: Backend.Configure takes context.Context
This adds a new context.Context argument to the Backend.Configure method, updates all of the implementations to match, and then updates all of the callers to pass in a context. A small number of callers don't yet have context plumbed to them so those use context.TODO() as a placeholder for now, so we can more easily find and fix them in later commits once we have contexts more thoroughly plumbed. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
@@ -228,7 +228,7 @@ func (b *Remote) ServiceDiscoveryAliases() ([]backend.HostAlias, error) {
|
||||
}
|
||||
|
||||
// Configure implements backend.Enhanced.
|
||||
func (b *Remote) Configure(obj cty.Value) tfdiags.Diagnostics {
|
||||
func (b *Remote) Configure(ctx context.Context, obj cty.Value) tfdiags.Diagnostics {
|
||||
var diags tfdiags.Diagnostics
|
||||
if obj.IsNull() {
|
||||
return diags
|
||||
|
||||
Reference in New Issue
Block a user