From 760adef570d49d07aefe51279ac3a99d03df4e33 Mon Sep 17 00:00:00 2001 From: hnrkndrssn Date: Wed, 31 Jul 2024 09:39:48 +1000 Subject: [PATCH] chore: mutexes are :fire: :fire: :fire: --- octopusdeploy_framework/resource_variable.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/octopusdeploy_framework/resource_variable.go b/octopusdeploy_framework/resource_variable.go index 13b302541..1de32ec0b 100644 --- a/octopusdeploy_framework/resource_variable.go +++ b/octopusdeploy_framework/resource_variable.go @@ -106,6 +106,9 @@ func (r *variableTypeResource) Create(ctx context.Context, req resource.CreateRe } func (r *variableTypeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + mutex.Lock() + defer mutex.Unlock() + var data schemas.VariableTypeResourceModel resp.Diagnostics.Append(req.State.Get(ctx, &data)...) if resp.Diagnostics.HasError() {