Skip to content

Commit

Permalink
ensure spec is set
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Feb 24, 2017
1 parent 6346b3c commit 6799c76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ func (p *PeriodicConfig) Canonicalize() {
if p.Enabled == nil {
p.Enabled = helper.BoolToPtr(true)
}
if p.Spec == nil {
p.Spec = helper.StringToPtr("")
}
if p.SpecType == nil {
p.SpecType = helper.StringToPtr(PeriodicSpecCron)
}
Expand Down

0 comments on commit 6799c76

Please sign in to comment.