Skip to content

Commit

Permalink
ac
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed Dec 4, 2019
1 parent c780e66 commit 689b593
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sentry/resource_sentry_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func resourceSentryProjectCreate(d *schema.ResourceData, meta interface{}) error
}

if d.Get("remove_default_key").(bool) {
err = removeDefaultKey(meta, org, proj.Slug)
err = removeDefaultKey(client, org, proj.Slug)
if err != nil {
return err
}
Expand Down Expand Up @@ -231,9 +231,7 @@ func resourceSentryProjectImporter(d *schema.ResourceData, meta interface{}) ([]
return []*schema.ResourceData{d}, nil
}

func removeDefaultKey(meta interface{}, org, projSlug string) error {
client := meta.(*sentryclient.Client)

func removeDefaultKey(client *sentryclient.Client, org, projSlug string) error {
keys, _, err := client.ProjectKeys.List(org, projSlug)
if err != nil {
return err
Expand Down

0 comments on commit 689b593

Please sign in to comment.