Skip to content

Commit

Permalink
fix(saas): upload JSON if err occured during scan (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe authored Mar 1, 2023
1 parent ee97d98 commit a528362
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions subcmds/saas.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ func (p *SaaSCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
var res models.ScanResults
hasError := false
for _, r := range loaded {
if len(r.Errors) == 0 {
res = append(res, r)
} else {
res = append(res, r)
if len(r.Errors) != 0 {
logging.Log.Errorf("Ignored since errors occurred during scanning: %s, err: %v",
r.ServerName, r.Errors)
hasError = true
Expand Down

0 comments on commit a528362

Please sign in to comment.