Forráskód Böngészése

Make sure that the layer exists prior to store it

Guillaume J. Charmes 12 éve
szülő
commit
be9dd7b85f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      graph.go

+ 1 - 1
graph.go

@@ -113,7 +113,7 @@ func (graph *Graph) Create(layerData Archive, container *Container, comment, aut
 		img.Container = container.Id
 		img.ContainerConfig = *container.Config
 	}
-	if err := graph.Register(layerData, true, img); err != nil {
+	if err := graph.Register(layerData, layerData != nil, img); err != nil {
 		return nil, err
 	}
 	go img.Checksum()