mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +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
|
||||
}
|
||||
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)
|
||||
|
Reference in New Issue
Block a user