mirror of
https://github.com/containers/podman.git
synced 2025-11-01 19:21:04 +08:00
vendor c/common@0ededd18a1
Update the login tests to reflect the latest changes to allow http{s}
prefixes (again) to address bugzilla.redhat.com/show_bug.cgi?id=2062072.
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/common/libimage/runtime.go
generated
vendored
5
vendor/github.com/containers/common/libimage/runtime.go
generated
vendored
@ -592,6 +592,8 @@ type RemoveImagesOptions struct {
|
||||
// containers using a specific image. By default, all containers in
|
||||
// the local containers storage will be removed (if Force is set).
|
||||
RemoveContainerFunc RemoveContainerFunc
|
||||
// Ignore if a specified image does not exist and do not throw an error.
|
||||
Ignore bool
|
||||
// IsExternalContainerFunc allows for checking whether the specified
|
||||
// container is an external one (when containers=external filter is
|
||||
// used). The definition of an external container can be set by
|
||||
@ -677,6 +679,9 @@ func (r *Runtime) RemoveImages(ctx context.Context, names []string, options *Rem
|
||||
for _, name := range names {
|
||||
img, resolvedName, err := r.LookupImage(name, lookupOptions)
|
||||
if err != nil {
|
||||
if options.Ignore && errors.Is(err, storage.ErrImageUnknown) {
|
||||
continue
|
||||
}
|
||||
appendError(err)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user