Skip to content

Commit

Permalink
Moves problem write
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaize Kaye committed Apr 16, 2024
1 parent 5abd2d3 commit d57739a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/insightsParserFilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func processSbomInsightsData(h *Messaging, insights InsightsData, v string, apiC
Id: 0,
Environment: environment.Id,
Identifier: "Testing EOL",
Version: "",
FixedVersion: "",
Version: "1.1",
FixedVersion: "1.2",
Source: "",
Service: "",
Data: "",
Expand Down
3 changes: 3 additions & 0 deletions internal/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ func (h *Messaging) SendProblemSliceToLagoon(result []lagoonclient.LagoonProblem
}

slog.Info(fmt.Sprintf("Found the following problems for Project '%v', environment '%v', source '%v", resource.Project, resource.Environment, source))
for _, prob := range result {
slog.Info(fmt.Sprintf("%v:%v", prob.Identifier, prob.Version))
}
err := writeProblemsArrayToApi(apiClient, environment.Id, problemSource, resource.Service, result)
if err != nil {
return fmt.Errorf("unable to write problems to api: %v", err.Error())
Expand Down

0 comments on commit d57739a

Please sign in to comment.