Fix copy and paste error

This commit is contained in:
Jan Eitzinger 2023-03-31 12:33:14 +02:00
parent 869c4d7e5e
commit bfee9d847b
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func loadJobMeta(filename string) (*schema.JobMeta, error) {
} }
if config.Keys.Validate { if config.Keys.Validate {
if err := schema.Validate(schema.Meta, bytes.NewReader(b)); err != nil { if err := schema.Validate(schema.Meta, bytes.NewReader(b)); err != nil {
return &schema.JobMeta{}, fmt.Errorf("validate cluster config: %v", err) return &schema.JobMeta{}, fmt.Errorf("validate job meta: %v", err)
} }
} }

View File

@ -30,6 +30,6 @@ func main() {
ar := archive.GetHandle() ar := archive.GetHandle()
for jobMeta := range ar.Iter() { for jobMeta := range ar.Iter() {
fmt.Printf("Validate %s - %d\n", jobMeta.Cluster, jobMeta.JobID) log.Printf("Validate %s - %d\n", jobMeta.Cluster, jobMeta.JobID)
} }
} }