From 58dec905cefac581fb0ac6a9aecb9a6236e2807c Mon Sep 17 00:00:00 2001 From: postables Date: Mon, 4 May 2020 14:45:56 -0700 Subject: [PATCH] labd/routers/experimentrouter: properly set benchmark labels --- labd/routers/experimentrouter/router.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/labd/routers/experimentrouter/router.go b/labd/routers/experimentrouter/router.go index 02c25454..cf6bc976 100644 --- a/labd/routers/experimentrouter/router.go +++ b/labd/routers/experimentrouter/router.go @@ -151,7 +151,6 @@ func (s *router) postExperimentsCreate(ctx context.Context, w http.ResponseWrite if err != nil { return err } - fmt.Printf("%+v\n", cluster) defer func() error { zerolog.Ctx(ctx).Info().Msg("tearing down cluster") cluster, err := s.db.GetCluster(ctx, name) @@ -203,7 +202,10 @@ func (s *router) postExperimentsCreate(ctx context.Context, w http.ResponseWrite Cluster: cluster, Scenario: scenario, Plan: plan, - Labels: cluster.Labels, + Labels: []string{ + scenario.ID, + cluster.ID, + }, } if benchmark, err = s.db.CreateBenchmark(ctx, benchmark); err != nil { return err