@@ -369,27 +369,24 @@ func GetMessages(config *config.Config, ctx context.Context) (results map[string
369369 CveID : * vuln .Cve .ID ,
370370 CveSeverity : vuln .Cve .Severity ,
371371 TimestampFound : * vuln .CreatedTimestamp ,
372- // FixedVersion: "", -> set later
373- DaysOpen : uint (math .Ceil (time .Since (createdTime ).Hours () / 24 )),
372+ DaysOpen : uint (math .Ceil (time .Since (createdTime ).Hours () / 24 )),
374373 }
375374
376375 for _ , mitigation := range vuln .Remediation .Entities {
377376 if strings .HasPrefix (strings .ToLower (* mitigation .Action ), "no fix available for " ) {
378377 continue
379378 }
380379
381- logrus .Fatalf ("%+v" , mitigation )
382- // TODO: remove
383380 deviceFinding .Mitigations = appendUnique (deviceFinding .Mitigations , []string {* mitigation .Action })
384381 }
385382
386383 if _ , ok := devices [uniqueDeviceID ]; ! ok {
387384 devices [uniqueDeviceID ] = UserDevice {
388385 Hostname : * vuln .HostInfo .Hostname ,
389386 MachineName : fmt .Sprintf (
390- "%s %s" ,
391- * vuln .HostInfo .OsVersion ,
387+ "%s (%s)" ,
392388 * vuln .HostInfo .Hostname ,
389+ * vuln .HostInfo .OsVersion ,
393390 ),
394391 Tags : vuln .HostInfo .Tags ,
395392 Findings : []UserDeviceFinding {},
0 commit comments