mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
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:
@ -1299,7 +1299,7 @@ func (s *SQLiteState) LookupPod(idOrName string) (*Pod, error) {
|
|||||||
foundResult = true
|
foundResult = true
|
||||||
}
|
}
|
||||||
if !foundResult {
|
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)
|
return s.createPod(rawJSON)
|
||||||
|
Reference in New Issue
Block a user