Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.0.17.1-fix-project-search-filter-bug'
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyisan committed Nov 8, 2021
2 parents a5f7288 + 650bbc1 commit 11afedc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ func (s *Scan) findORCreateProject() (*client.Project, error) {
return &projects[0], nil
}

if len(projects) > 1 {
return nil, errors.New("multiple projects found for given parameters")
}

createProject, err := s.cmd.Flags().GetBool("create-project")
if err != nil {
return nil, fmt.Errorf("failed to get create-project flag: %w", err)
Expand Down

0 comments on commit 11afedc

Please sign in to comment.