mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-31 11:17:25 -06:00
lock the provisioner mutex in ProvisionerSchema
This commit is contained in:
parent
cdaeed4f26
commit
6bf70427dd
@ -281,8 +281,8 @@ func (ctx *BuiltinEvalContext) Provisioner(n string) ResourceProvisioner {
|
||||
func (ctx *BuiltinEvalContext) ProvisionerSchema(n string) *configschema.Block {
|
||||
ctx.once.Do(ctx.init)
|
||||
|
||||
ctx.ProviderLock.Lock()
|
||||
defer ctx.ProviderLock.Unlock()
|
||||
ctx.ProvisionerLock.Lock()
|
||||
defer ctx.ProvisionerLock.Unlock()
|
||||
|
||||
return ctx.ProvisionerSchemas[n]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user