remove redundant context and ignore coverage output

This commit is contained in:
Simon Aronsson 2020-12-06 13:18:31 +01:00
parent 75c62a90e4
commit 870f49bdc9
No known key found for this signature in database
GPG key ID: 8DA57A5FD341605B
6 changed files with 22 additions and 25 deletions

View file

@ -294,7 +294,7 @@ func (client dockerClient) PullImage(ctx context.Context, container Container) e
log.WithFields(fields).Debugf("Checking if pull is needed")
if match, err := digest.CompareDigest(ctx, container, opts.RegistryAuth); err != nil {
if match, err := digest.CompareDigest(container, opts.RegistryAuth); err != nil {
log.Info("Could not do a head request, falling back to regulara pull.")
log.Debugf("Reason: %s", err.Error())
} else if match {