Fixed typo in repo data source
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
feacbf5a3f
commit
2c787bd532
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user