From 9ea93965da2960e34d451457ff647af19f791429 Mon Sep 17 00:00:00 2001 From: Rob E Date: Fri, 1 Mar 2024 21:01:33 +1000 Subject: [PATCH] Fix the issue for worker_pool_variable not being applied. (#611) (#613) Co-authored-by: Jason Lu --- octopusdeploy/schema_deployment_action.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octopusdeploy/schema_deployment_action.go b/octopusdeploy/schema_deployment_action.go index 62ff296c4..d54454119 100644 --- a/octopusdeploy/schema_deployment_action.go +++ b/octopusdeploy/schema_deployment_action.go @@ -459,6 +459,10 @@ func expandAction(flattenedAction map[string]interface{}) *deployments.Deploymen action.WorkerPool = v.(string) } + if v, ok := flattenedAction["worker_pool_variable"]; ok { + action.WorkerPoolVariable = v.(string) + } + if v, ok := flattenedAction["primary_package"]; ok { primaryPackages := v.([]interface{}) for _, primaryPackage := range primaryPackages {