Fixed typo in repo data source

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