Explorar el Código

Merge pull request #30085 from swernli/skip_push_base

storeLayer.Parent should return describableStoreLayers
John Howard hace 8 años
padre
commit
e48937fb99
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      distribution/config.go

+ 9 - 1
distribution/config.go

@@ -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) {