mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 17:58:04 +02: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) {
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user