Skip to content

Commit

Permalink
Merge pull request #30085 from swernli/skip_push_base
Browse files Browse the repository at this point in the history
storeLayer.Parent should return describableStoreLayers
  • Loading branch information
John Howard authored Jan 12, 2017
2 parents d9a4bba + d14b721 commit e48937f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion distribution/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e48937f

Please sign in to comment.