Description
The github_organization data source uses the wrong getter method for the members_can_fork_private_repositories attribute.
In data_source_github_organization.go:257:
_ = d.Set("members_can_fork_private_repositories", organization.GetMembersCanCreatePrivateRepos())
This calls GetMembersCanCreatePrivateRepos() instead of GetMembersCanForkPrivateRepos(), causing the attribute to return the value of members_can_create_private_repositories instead of the actual fork permission.
Expected behavior
members_can_fork_private_repositories should return whether members can fork private repositories.
Actual behavior
Returns the value of members_can_create_private_repositories instead.
Terraform and provider version
All versions since the field was added.
Code of Conduct
Description
The
github_organizationdata source uses the wrong getter method for themembers_can_fork_private_repositoriesattribute.In
data_source_github_organization.go:257:This calls
GetMembersCanCreatePrivateRepos()instead ofGetMembersCanForkPrivateRepos(), causing the attribute to return the value ofmembers_can_create_private_repositoriesinstead of the actual fork permission.Expected behavior
members_can_fork_private_repositoriesshould return whether members can fork private repositories.Actual behavior
Returns the value of
members_can_create_private_repositoriesinstead.Terraform and provider version
All versions since the field was added.
Code of Conduct