mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-12-04 21:08:11 +00:00
Fixed typo in repo data source
This commit is contained in:
parent
feacbf5a3f
commit
2c787bd532
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ func dataSourceGiteaRepoRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
}
|
}
|
||||||
username := strings.ToLower(usernameData.(string))
|
username := strings.ToLower(usernameData.(string))
|
||||||
|
|
||||||
nameData, nameOk := d.GetOk("username")
|
nameData, nameOk := d.GetOk("name")
|
||||||
if !nameOk {
|
if !nameOk {
|
||||||
return fmt.Errorf("name of repo must be passed")
|
return fmt.Errorf("name of repo must be passed")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue