Skip to content

Commit

Permalink
labd/routers/experimentrouter: properly set benchmark labels
Browse files Browse the repository at this point in the history
  • Loading branch information
postables committed May 4, 2020
1 parent 8e4721b commit 58dec90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions labd/routers/experimentrouter/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58dec90

Please sign in to comment.