Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
veochen-octopus committed Oct 11, 2023
1 parent 9938c2f commit 10816a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions octopusdeploy/schema_deployment_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,16 @@ 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)
}

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)
}
Expand Down

0 comments on commit 10816a0

Please sign in to comment.