From 9938c2f8c2689e635dda776a58e7fa3e2c72355d Mon Sep 17 00:00:00 2001 From: "veo.chen" Date: Tue, 10 Oct 2023 12:11:25 +1300 Subject: [PATCH] retain action id --- 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 2acf10e78..81037ee46 100644 --- a/octopusdeploy/schema_deployment_action.go +++ b/octopusdeploy/schema_deployment_action.go @@ -391,6 +391,10 @@ func expandAction(flattenedAction map[string]interface{}) *deployments.Deploymen action.Properties = expandProperties(v) } + if v, ok := flattenedAction["id"]; ok { + action.ID = v.(string) + } + if v, ok := flattenedAction["can_be_used_for_project_versioning"]; ok { action.CanBeUsedForProjectVersioning = v.(bool) }