Close job temp file
This commit is contained in:
parent
fc36626945
commit
db685b164f
|
@ -255,6 +255,10 @@ func (j *JobGetter) StructJob(jpath string) (*structs.Job, error) {
|
|||
}
|
||||
defer os.Remove(job.Name())
|
||||
|
||||
if err := job.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Get the pwd
|
||||
pwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue