mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
ensure spec is set
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user