potential fix for #35
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Trabelsi 2023-05-15 15:17:32 +02:00
parent e5a6132b9d
commit 9d12fb5fc6
2 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ func setTeamResourceData(team *gitea.Team, d *schema.ResourceData) (err error) {
d.Set(TeamPermissions, string(team.Permission))
d.Set(TeamIncludeAllReposFlag, team.IncludesAllRepositories)
d.Set(TeamUnits, d.Get(TeamUnits).(string))
d.Set(TeamOrg, d.Get(TeamOrg).(string))
d.Set(TeamOrg, team.Organization.UserName)
d.Set(TeamMembers, d.Get(TeamMembers))
return
}
@ -228,7 +228,7 @@ func resourceGiteaTeam() *schema.Resource {
Update: resourceTeamUpdate,
Delete: resourceTeamDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"name": {

View File

@ -6,7 +6,7 @@ networks:
services:
server:
image: gitea/gitea:1.17.1
image: gitea/gitea:1.19.3
container_name: gitea
environment:
- USER_UID=1000