diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 050110512..65608c9a5 100644 --- a/model/config.go +++ b/model/config.go @@ -477,6 +477,7 @@ type JobSettings struct { } type PluginSettings struct { + Enable *bool Plugins map[string]interface{} } @@ -1522,6 +1523,11 @@ func (o *Config) SetDefaults() { *o.JobSettings.RunScheduler = true } + if o.PluginSettings.Enable == nil { + o.PluginSettings.Enable = new(bool) + *o.PluginSettings.Enable = false + } + if o.PluginSettings.Plugins == nil { o.PluginSettings.Plugins = make(map[string]interface{}) } |