Skip to content

Commit

Permalink
fix: actually apply VLAN and VM schedule settings when creating exper…
Browse files Browse the repository at this point in the history
…iment
  • Loading branch information
activeshadow committed Dec 7, 2023
1 parent 3aa28f8 commit afb3cd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/go/api/experiment/experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ func Create(ctx context.Context, opts ...CreateOption) error {
exp.Spec.VLANs().SetAliases(o.vlanAliases)
exp.Spec.SetSchedule(o.schedules)

c.Spec = structs.MapDefaultCase(exp.Spec, structs.CASESNAKE)

if _, err := config.Create(config.CreateFromConfig(c), config.CreateWithValidation()); err != nil {
return fmt.Errorf("creating experiment config: %w", err)
}
Expand Down

0 comments on commit afb3cd0

Please sign in to comment.