Skip to content
Snippets Groups Projects
Commit 488cd85a authored by Łukasz Łopatowski's avatar Łukasz Łopatowski
Browse files

Fixed log

parent 25816f8a
No related branches found
No related tags found
No related merge requests found
...@@ -106,12 +106,12 @@ func (s *configServiceServer) FindGitlabProjectId(api *gitlab.Client, uid string ...@@ -106,12 +106,12 @@ func (s *configServiceServer) FindGitlabProjectId(api *gitlab.Client, uid string
log.Printf("Searching for GitLab Projects within Group %d / %s", groups[0].ID, groups[0].Name) log.Printf("Searching for GitLab Projects within Group %d / %s", groups[0].ID, groups[0].Name)
projs, _, err := api.Groups.ListGroupProjects(groups[0].ID, nil) projs, _, err := api.Groups.ListGroupProjects(groups[0].ID, nil)
if err != nil || len(projs) == 0 { if err != nil || len(projs) == 0 {
log.Printf("Group %s is empty or unaccessible", groups[0].Name) log.Printf("Group %s is empty or inaccessible", groups[0].Name)
return -1, status.Errorf(codes.NotFound, "Project containing config not found on Gitlab") return -1, status.Errorf(codes.NotFound, "Project containing config not found on Gitlab")
} }
//Find our project in group projects list //Find our project in group projects list
log.Printf("Found %d Projects and looking for %s", len(projs), uid) log.Printf("Found %d projects and looking for %s", len(projs), uid)
for _, proj := range projs { for _, proj := range projs {
if proj.Name == uid { if proj.Name == uid {
return proj.ID, nil return proj.ID, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment