Skip to content

Commit

Permalink
fix: replacement is forced when app slug name is used for scalingo_sc…
Browse files Browse the repository at this point in the history
…m_repo_link
  • Loading branch information
josephpage committed May 16, 2023
1 parent 416fc29 commit d694595
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scm_integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ data "scalingo_scm_integration" "scm_integration" {
resource "scalingo_scm_repo_link" "scm_repo_link" {
for_each = local.scm_integration

app = scalingo_app.app.name
# Due to a bug in the provider, we need to use the app id instead of the app name
# Link to the issue : https://github.com/Scalingo/terraform-provider-scalingo/issues/153
app = scalingo_app.app.id

source = each.value.repo_url
auth_integration_uuid = (each.value.integration_uuid != null
? each.value.integration_uuid
Expand Down

0 comments on commit d694595

Please sign in to comment.