mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
Fix errors found in coverity scan
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -236,7 +236,7 @@ func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := r.removeContainer(ctx, ctr, force, false, true); err != nil {
|
if err := r.removeContainer(ctx, ctr, force, false, true); err != nil {
|
||||||
if removalErr != nil {
|
if removalErr == nil {
|
||||||
removalErr = err
|
removalErr = err
|
||||||
} else {
|
} else {
|
||||||
logrus.Errorf("Error removing container %s from pod %s: %v", ctr.ID(), p.ID(), err)
|
logrus.Errorf("Error removing container %s from pod %s: %v", ctr.ID(), p.ID(), err)
|
||||||
|
@ -108,6 +108,7 @@ func ProcessOptions(options []string, isTmpfs bool, sourcePath string) ([]string
|
|||||||
if foundZ {
|
if foundZ {
|
||||||
return nil, errors.Wrapf(ErrDupeMntOption, "only one of 'z' and 'Z' can be used")
|
return nil, errors.Wrapf(ErrDupeMntOption, "only one of 'z' and 'Z' can be used")
|
||||||
}
|
}
|
||||||
|
foundZ = true
|
||||||
default:
|
default:
|
||||||
return nil, errors.Wrapf(ErrBadMntOption, "unknown mount option %q", opt)
|
return nil, errors.Wrapf(ErrBadMntOption, "unknown mount option %q", opt)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user