Skip to content

Commit

Permalink
Merge pull request GoogleContainerTools#1163 from dgageot/remove-log
Browse files Browse the repository at this point in the history
Remove annoying log
  • Loading branch information
r2d4 authored Oct 15, 2018
2 parents 1af9b55 + b0f7824 commit 33db96d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/skaffold/docker/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ func onbuildInstructions(nodes []*parser.Node) ([]*parser.Node, error) {
continue
}

logrus.Debugf("Found ONBUILD triggers %v in image %s", img.Config.OnBuild, from.image)
instructions = append(instructions, img.Config.OnBuild...)
if len(img.Config.OnBuild) > 0 {
logrus.Debugf("Found ONBUILD triggers %v in image %s", img.Config.OnBuild, from.image)
instructions = append(instructions, img.Config.OnBuild...)
}
}

obRes, err := parser.Parse(strings.NewReader(strings.Join(instructions, "\n")))
Expand Down

0 comments on commit 33db96d

Please sign in to comment.