mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Pass context to all statemgr.Locker operations (#789)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
This commit is contained in:
@@ -38,10 +38,9 @@ type Backend struct {
|
||||
*schema.Backend
|
||||
credential *common.Credential
|
||||
|
||||
cosContext context.Context
|
||||
cosClient *cos.Client
|
||||
tagClient *tag.Client
|
||||
stsClient *sts.Client
|
||||
cosClient *cos.Client
|
||||
tagClient *tag.Client
|
||||
stsClient *sts.Client
|
||||
|
||||
region string
|
||||
bucket string
|
||||
@@ -207,8 +206,7 @@ func (b *Backend) configure(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
b.cosContext = ctx
|
||||
data := schema.FromContextBackendConfig(b.cosContext)
|
||||
data := schema.FromContextBackendConfig(ctx)
|
||||
|
||||
b.region = data.Get("region").(string)
|
||||
b.bucket = data.Get("bucket").(string)
|
||||
|
||||
Reference in New Issue
Block a user