ensure spec is set

This commit is contained in:
Alex Dadgar
2017-02-24 14:18:09 -08:00
parent 6346b3c9ec
commit 6799c7667d

View File

@@ -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)
}