Skip to content

Commit

Permalink
Update github_organization_settings to only need RO permissions at pl…
Browse files Browse the repository at this point in the history
…an time (integrations#1321)
  • Loading branch information
avgalani authored and kazaker committed Dec 28, 2022
1 parent 06b6eb2 commit 4ec7e63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion github/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Provider() terraform.ResourceProvider {
"github_membership": resourceGithubMembership(),
"github_organization_block": resourceOrganizationBlock(),
"github_organization_project": resourceGithubOrganizationProject(),
"github_organization_settings": resouceGithubOrganizationSettings(),
"github_organization_settings": resourceGithubOrganizationSettings(),
"github_organization_webhook": resourceGithubOrganizationWebhook(),
"github_project_card": resourceGithubProjectCard(),
"github_project_column": resourceGithubProjectColumn(),
Expand Down
4 changes: 2 additions & 2 deletions github/resource_github_organization_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)

func resouceGithubOrganizationSettings() *schema.Resource {
func resourceGithubOrganizationSettings() *schema.Resource {
return &schema.Resource{
Create: resourceGithubOrganizationSettingsCreateOrUpdate,
Read: resourceGithubOrganizationSettingsRead,
Expand Down Expand Up @@ -246,7 +246,7 @@ func resourceGithubOrganizationSettingsRead(d *schema.ResourceData, meta interfa
ctx := context.Background()
org := meta.(*Owner).name

orgSettings, _, err := client.Organizations.Edit(ctx, org, nil)
orgSettings, _, err := client.Organizations.Get(ctx, org)
if err != nil {
return err
}
Expand Down

0 comments on commit 4ec7e63

Please sign in to comment.