aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting_email.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-12 15:34:46 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-13 08:20:02 +0000
commitbfb20202da73451f997b711447ee68bc3635868e (patch)
treee8fbdbd6a8761a6a73711301deb655572749c70e /dashboard/app/reporting_email.go
parent860811962461dbc8d8fb3af4fd7f65cf50857661 (diff)
dashboard: always return full UserSpaceArch
Currently we return an empty value for amd64, so that it's not reported. Let's make the API more flexible -- return the value as is and let specific reporters decide whether to mention amd64 or not.
Diffstat (limited to 'dashboard/app/reporting_email.go')
-rw-r--r--dashboard/app/reporting_email.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go
index 35f104d71..071def054 100644
--- a/dashboard/app/reporting_email.go
+++ b/dashboard/app/reporting_email.go
@@ -22,6 +22,7 @@ import (
"github.com/google/syzkaller/pkg/email"
"github.com/google/syzkaller/pkg/email/lore"
"github.com/google/syzkaller/pkg/html"
+ "github.com/google/syzkaller/sys/targets"
"golang.org/x/net/context"
"google.golang.org/appengine/v2"
db "google.golang.org/appengine/v2/datastore"
@@ -331,6 +332,10 @@ func emailReport(c context.Context, rep *dashapi.BugReport) error {
if err := json.Unmarshal(rep.Config, cfg); err != nil {
return fmt.Errorf("failed to unmarshal email config: %v", err)
}
+ if rep.UserSpaceArch == targets.AMD64 {
+ // This is default, so don't include the info.
+ rep.UserSpaceArch = ""
+ }
templ := ""
switch rep.Type {
case dashapi.ReportNew, dashapi.ReportRepro: