Fixed typo in repo data source
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
lerentis 2023-02-17 22:40:28 +00:00
parent feacbf5a3f
commit 2c787bd532

View File

@ -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")
}