Skip to content

Commit

Permalink
Fix pulled images loading
Browse files Browse the repository at this point in the history
  • Loading branch information
barkbay committed Aug 13, 2019
1 parent 6f28c1c commit a3a79ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/build/node/node.go
Expand Up @@ -500,6 +500,7 @@ func (c *BuildContext) prePullImages(dir, containerID string) error {
// create a plan of image loading // create a plan of image loading
loadFns := []func() error{} loadFns := []func() error{}
for _, image := range pulled { for _, image := range pulled {
image := image // capture loop var
loadFns = append(loadFns, func() error { loadFns = append(loadFns, func() error {
f, err := os.Open(image) f, err := os.Open(image)
if err != nil { if err != nil {
Expand Down

0 comments on commit a3a79ab

Please sign in to comment.