mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
patch node build to handle image pulling
This commit is contained in:
@@ -307,8 +307,8 @@ func (c *BuildContext) createBuildContainer(buildDir string) (id string, err err
|
||||
if err != nil {
|
||||
return "", errors.Wrap(err, "failed to create build container")
|
||||
}
|
||||
if len(lines) != 1 {
|
||||
return "", fmt.Errorf("invalid container creation output: %v", lines)
|
||||
if len(lines) < 1 {
|
||||
return "", fmt.Errorf("invalid container creation output, must print at least one line")
|
||||
}
|
||||
return lines[0], nil
|
||||
return lines[len(lines)-1], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user