correct typo

This commit is contained in:
techknowlogick 2022-03-31 20:15:25 -04:00
parent 75efa3bc7c
commit 35c4b897fb
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import (
func dataSourceGiteaOrg() *schema.Resource { func dataSourceGiteaOrg() *schema.Resource {
return &schema.Resource{ return &schema.Resource{
Read: dataSourceGitlabUserRead, Read: dataSourceGiteaUserRead,
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"id": { "id": {
Type: schema.TypeInt, Type: schema.TypeInt,
@ -50,7 +50,7 @@ func dataSourceGiteaOrg() *schema.Resource {
} }
} }
func dataSourceGitlabOrgRead(d *schema.ResourceData, meta interface{}) error { func dataSourceGiteaOrgRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*gitea.Client) client := meta.(*gitea.Client)
var org *gitea.Organization var org *gitea.Organization

View File

@ -11,7 +11,7 @@ import (
func dataSourceGiteaUser() *schema.Resource { func dataSourceGiteaUser() *schema.Resource {
return &schema.Resource{ return &schema.Resource{
Read: dataSourceGitlabUserRead, Read: dataSourceGiteaUserRead,
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"id": { "id": {
Type: schema.TypeInt, Type: schema.TypeInt,
@ -54,7 +54,7 @@ func dataSourceGiteaUser() *schema.Resource {
} }
} }
func dataSourceGitlabUserRead(d *schema.ResourceData, meta interface{}) error { func dataSourceGiteaUserRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*gitea.Client) client := meta.(*gitea.Client)
var user *gitea.User var user *gitea.User