Merge pull request #30085 from swernli/skip_push_base
storeLayer.Parent should return describableStoreLayers
This commit is contained in:
commit
e48937fb99
1 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue