worker/server: fix manifest-id job status
The manifest by id job status type safe function was failing due to the jobType check which was checking for the wrong string.
This commit is contained in:
parent
b75cf30a05
commit
ab98c66b9f
1 changed files with 2 additions and 2 deletions
|
|
@ -249,8 +249,8 @@ func (s *Server) ManifestJobStatus(id uuid.UUID, result *ManifestJobByIDResult)
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
if jobType != "manifest-job-by-id" {
|
||||
return nil, nil, fmt.Errorf("expected \"manifest-job-by-id\", found %q job instead", jobType)
|
||||
if jobType != "manifest-id-only" {
|
||||
return nil, nil, fmt.Errorf("expected \"manifest-id-only\", found %q job instead", jobType)
|
||||
}
|
||||
|
||||
return status, deps, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue