summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-17 22:36:56 +0100
committerGitHub <noreply@github.com>2020-03-17 22:36:56 +0100
commitf3a28de3249032e5d7be14114b126c7bddf3d479 (patch)
treeb0cd9dcd440ec885d30b0c04fc29ab9c9b07a9e1
parentbcdcfeb3e35ca81e3802a2455e08296d3f894d20 (diff)
parent83d2686f466e1ea439039c301fcdce53313d3af0 (diff)
downloadpodman-f3a28de3249032e5d7be14114b126c7bddf3d479.tar.gz
podman-f3a28de3249032e5d7be14114b126c7bddf3d479.tar.bz2
podman-f3a28de3249032e5d7be14114b126c7bddf3d479.zip
Merge pull request #5528 from mheon/fix_master_vendor
Fix vendoring on master
-rw-r--r--vendor/github.com/containers/buildah/pkg/supplemented/supplemented.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/github.com/containers/buildah/pkg/supplemented/supplemented.go b/vendor/github.com/containers/buildah/pkg/supplemented/supplemented.go
index 9dd47a0e2..5e3c6291a 100644
--- a/vendor/github.com/containers/buildah/pkg/supplemented/supplemented.go
+++ b/vendor/github.com/containers/buildah/pkg/supplemented/supplemented.go
@@ -296,6 +296,9 @@ func (s *supplementedImageSource) Close() error {
}
closed[sourceInstance] = struct{}{}
}
+ if returnErr == nil {
+ return nil
+ }
return returnErr.ErrorOrNil()
}
@@ -340,13 +343,17 @@ func (s *supplementedImageSource) HasThreadSafeGetBlob() bool {
}
func (s *supplementedImageSource) GetSignatures(ctx context.Context, instanceDigest *digest.Digest) ([][]byte, error) {
- var src types.ImageSource
+ var (
+ src types.ImageSource
+ digest digest.Digest
+ )
requestInstanceDigest := instanceDigest
if instanceDigest == nil {
if sourceInstance, ok := s.sourceInstancesByInstance[""]; ok {
src = sourceInstance
}
} else {
+ digest = *instanceDigest
if sourceInstance, ok := s.sourceInstancesByInstance[*instanceDigest]; ok {
src = sourceInstance
}
@@ -357,7 +364,7 @@ func (s *supplementedImageSource) GetSignatures(ctx context.Context, instanceDig
if src != nil {
return src.GetSignatures(ctx, requestInstanceDigest)
}
- return nil, errors.Wrapf(ErrDigestNotFound, "error finding instance for instance digest %q to read signatures", *instanceDigest)
+ return nil, errors.Wrapf(ErrDigestNotFound, "error finding instance for instance digest %q to read signatures", digest)
}
func (s *supplementedImageSource) LayerInfosForCopy(ctx context.Context, instanceDigest *digest.Digest) ([]types.BlobInfo, error) {