mirror of https://github.com/containers/podman.git
sqlite: fix LookupPod
To return the error message expected by the system tests. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
parent
19c2f37ba5
commit
efe7aeb1da
|
@ -1299,7 +1299,7 @@ func (s *SQLiteState) LookupPod(idOrName string) (*Pod, error) {
|
|||
foundResult = true
|
||||
}
|
||||
if !foundResult {
|
||||
return nil, define.ErrNoSuchPod
|
||||
return nil, fmt.Errorf("no pod with name or ID %s found: %w", idOrName, define.ErrNoSuchPod)
|
||||
}
|
||||
|
||||
return s.createPod(rawJSON)
|
||||
|
|
Loading…
Reference in New Issue