Skip to content

Commit

Permalink
Merge pull request #734 from nalind/choose-source
Browse files Browse the repository at this point in the history
copy.Image(): select the CopySystemImage image using the source context
  • Loading branch information
rhatdan authored Oct 23, 2019
2 parents 6934023 + 1b79c70 commit b8d780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func Image(ctx context.Context, policyContext *signature.PolicyContext, destRef,
if err != nil {
return nil, errors.Wrapf(err, "Error parsing primary manifest as list for %s", transports.ImageName(srcRef))
}
instanceDigest, err := manifestList.ChooseInstance(options.DestinationCtx) // try to pick one that matches options.DestinationCtx
instanceDigest, err := manifestList.ChooseInstance(options.SourceCtx) // try to pick one that matches options.SourceCtx
if err != nil {
return nil, errors.Wrapf(err, "Error choosing an image from manifest list %s", transports.ImageName(srcRef))
}
Expand Down

0 comments on commit b8d780c

Please sign in to comment.