don't return error if can't delete non-existing container
Signed-off-by: Sally O'Malley <somalley@redhat.com> Upstream-commit: bfa5027e96a6a5532c7cc89bd00be219082833fa Component: engine
This commit is contained in:
@ -627,8 +627,10 @@ func deleteAllContainers() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = deleteContainer(containers); err != nil {
|
||||
return err
|
||||
if containers != "" {
|
||||
if err = deleteContainer(containers); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user