Merge pull request #30085 from swernli/skip_push_base

storeLayer.Parent should return describableStoreLayers
This commit is contained in:
John Howard 2017-01-11 23:37:50 -08:00 committed by GitHub
commit e48937fb99

View file

@ -198,10 +198,18 @@ func (l *storeLayer) Parent() PushLayer {
if p == nil {
return nil
}
return &storeLayer{
sl := storeLayer{
Layer: p,
ls: l.ls,
}
if d, ok := p.(distribution.Describable); ok {
return &describableStoreLayer{
storeLayer: sl,
describable: d,
}
}
return &sl
}
func (l *storeLayer) Open() (io.ReadCloser, error) {