mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
cmd: config: was using wrong reference to config
This commit is contained in:
parent
71650819d3
commit
4ac7e78e2b
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user