mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 21:09:05 +01:00
Fix copy and paste error
This commit is contained in:
parent
869c4d7e5e
commit
bfee9d847b
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user