Skip to content

Commit 3c690c5

Browse files
committed
Fix importing gitlab_service_slack
1 parent b0374c0 commit 3c690c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/provider/resource_gitlab_service_slack.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ func resourceGitlabServiceSlackRead(ctx context.Context, d *schema.ResourceData,
257257
if id != project && project != "" {
258258
d.SetId(project)
259259
log.Printf("[WARN] changed gitlab slack service ID from %s to its project ID %s", id, project)
260+
} else {
261+
project = id
260262
}
261263

262264
log.Printf("[DEBUG] read gitlab slack service for project %s", project)

0 commit comments

Comments
 (0)