diff --git a/cmd/config.go b/cmd/config.go index ccd7d41..a9fb160 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -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) }