Skip to content

Commit

Permalink
Merge pull request #45 from Scalingo/fix/44/ignore_null_stack_id
Browse files Browse the repository at this point in the history
fix(apps) Do not try to remove the stack_id
  • Loading branch information
john-scalingo authored Jul 8, 2022
2 parents 966773c + ee4528d commit 354c2fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## To be Released

* fix(app) Do not try to remove the stack_id if it's not set in the app resource

## v0.5.1

* fix(notifiers) Rename webhook url field to webhook_url
Expand Down
6 changes: 6 additions & 0 deletions scalingo/resource_scalingo_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ func resourceScalingoApp() *schema.Resource {
"stack_id": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: func(k, oldValue, newValue string, d *schema.ResourceData) bool {
if newValue == "" {
return true
}
return true
},
},
},

Expand Down

0 comments on commit 354c2fd

Please sign in to comment.