Back to Run -- I was mistaken

pull/3680/head
Thomas Stromberg 2019-02-14 17:17:54 -08:00
parent 71eafef5ce
commit 2588a98435
1 changed files with 1 additions and 2 deletions

View File

@ -255,8 +255,7 @@ func (k *KubeadmBootstrapper) DeleteCluster(k8s config.KubernetesConfig) error {
// PullImages downloads images that will be used by RestartCluster
func (k *KubeadmBootstrapper) PullImages(k8s config.KubernetesConfig) error {
cmd := fmt.Sprintf("sudo kubeadm config images pull --config %s", constants.KubeadmConfigFile)
// Use CombinedOutput instead of Run to avoid spamming stdout/stderr
if _, err := k.c.CombinedOutput(cmd); err != nil {
if err := k.c.Run(cmd); err != nil {
return errors.Wrapf(err, "running cmd: %s", cmd)
}
return nil