cmd: config: was using wrong reference to config

This commit is contained in:
Christian Schwarz 2017-09-17 17:45:02 +02:00
parent 71650819d3
commit 4ac7e78e2b

View File

@ -14,7 +14,7 @@ type Config struct {
}
func (c *Config) LookupJob(name string) (j Job, err error) {
j, ok := conf.Jobs[name]
j, ok := c.Jobs[name]
if !ok {
return nil, errors.Errorf("job '%s' is not defined", name)
}