libimage: Pull: fix logs
Exchange two debug logs in the pull-never policy. Those were probably not moved along with the code and could lead to confusions when reading debug logs. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
parent
0b959bbf4d
commit
cbb69a9e64
|
|
@ -477,10 +477,10 @@ func (r *Runtime) copySingleImageFromRegistry(ctx context.Context, imageName str
|
|||
|
||||
if pullPolicy == config.PullPolicyNever {
|
||||
if localImage != nil {
|
||||
logrus.Debugf("Pull policy %q but no local image has been found for %s", pullPolicy, imageName)
|
||||
logrus.Debugf("Pull policy %q and %s resolved to local image %s", pullPolicy, imageName, resolvedImageName)
|
||||
return []string{resolvedImageName}, nil
|
||||
}
|
||||
logrus.Debugf("Pull policy %q and %s resolved to local image %s", pullPolicy, imageName, resolvedImageName)
|
||||
logrus.Debugf("Pull policy %q but no local image has been found for %s", pullPolicy, imageName)
|
||||
return nil, errors.Wrap(storage.ErrImageUnknown, imageName)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue