Skip to content

Commit

Permalink
fix: restore app.Processes assignment after validation
Browse files Browse the repository at this point in the history
  • Loading branch information
prbn021 committed Dec 20, 2024
1 parent 900bd94 commit 70a012e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/provider/resource_tsuru_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,12 @@ func resourceTsuruApplicationCreate(ctx context.Context, d *schema.ResourceData,

if m, ok := d.GetOk("process"); ok {
processes := processesFromResourceData(m)
err := isProcessListSorted(processes)
if err != nil {
return diag.FromErr(err)
if processes != nil {
err := isProcessListSorted(processes)
if err != nil {
return diag.FromErr(err)
}
app.Processes = processes
}
}

Expand Down

0 comments on commit 70a012e

Please sign in to comment.