cmd: config: was using wrong reference to config
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ type Config struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) LookupJob(name string) (j Job, err error) {
|
func (c *Config) LookupJob(name string) (j Job, err error) {
|
||||||
j, ok := conf.Jobs[name]
|
j, ok := c.Jobs[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.Errorf("job '%s' is not defined", name)
|
return nil, errors.Errorf("job '%s' is not defined", name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user