forked from TrueCloudLab/distribution
manifestServiceListener.Get to pass down options parameter
Signed-off-by: Serge Dubrouski <sergeyfd@gmail.com>
This commit is contained in:
parent
cd27f179f2
commit
a1a2757fb0
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ func (msl *manifestServiceListener) Delete(ctx context.Context, dgst digest.Dige
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msl *manifestServiceListener) Get(ctx context.Context, dgst digest.Digest, options ...distribution.ManifestServiceOption) (distribution.Manifest, error) {
|
func (msl *manifestServiceListener) Get(ctx context.Context, dgst digest.Digest, options ...distribution.ManifestServiceOption) (distribution.Manifest, error) {
|
||||||
sm, err := msl.ManifestService.Get(ctx, dgst)
|
sm, err := msl.ManifestService.Get(ctx, dgst, options...)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if err := msl.parent.listener.ManifestPulled(msl.parent.Repository.Named(), sm, options...); err != nil {
|
if err := msl.parent.listener.ManifestPulled(msl.parent.Repository.Named(), sm, options...); err != nil {
|
||||||
context.GetLogger(ctx).Errorf("error dispatching manifest pull to listener: %v", err)
|
context.GetLogger(ctx).Errorf("error dispatching manifest pull to listener: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue