Skip to content

Commit

Permalink
Merge pull request #548 from OctopusDeployLabs/veo/channel-rule
Browse files Browse the repository at this point in the history
Retain deployment action id between updates
  • Loading branch information
veochen-octopus authored Oct 11, 2023
2 parents 2fc870f + 10816a0 commit 94550be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions octopusdeploy/schema_deployment_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,11 @@ func expandAction(flattenedAction map[string]interface{}) *deployments.Deploymen

action := deployments.NewDeploymentAction(name, actionType)

// Retain the existing id as older channel rules might still be referencing the action by id
if v, ok := flattenedAction["id"]; ok {
action.ID = v.(string)
}

// expand properties first
if v, ok := flattenedAction["properties"]; ok {
action.Properties = expandProperties(v)
Expand Down

0 comments on commit 94550be

Please sign in to comment.