diff --git a/gitea/data_source_gitea_repo.go b/gitea/data_source_gitea_repo.go index b6b2c2d..32b94ca 100644 --- a/gitea/data_source_gitea_repo.go +++ b/gitea/data_source_gitea_repo.go @@ -116,7 +116,7 @@ func dataSourceGiteaRepoRead(d *schema.ResourceData, meta interface{}) error { } username := strings.ToLower(usernameData.(string)) - nameData, nameOk := d.GetOk("username") + nameData, nameOk := d.GetOk("name") if !nameOk { return fmt.Errorf("name of repo must be passed") }