fix typo and remove debugging logs

pull/5987/head
Medya Gh 2019-11-26 19:20:38 -08:00
parent cdb68a139e
commit d8d7849d21
2 changed files with 1 additions and 4 deletions

View File

@ -630,7 +630,7 @@ func NewKubeletConfig(k8s config.KubernetesConfig, r cruntime.Manager) ([]byte,
// UpdateCluster updates the cluster
func (k *Bootstrapper) UpdateCluster(cfg config.MachineConfig) error {
images := images.CachedImages(cfg.KubernetesConfig.KubernetesVersion, cfg.KubernetesConfig.KubernetesVersion)
images := images.CachedImages(cfg.KubernetesConfig.ImageRepository, cfg.KubernetesConfig.KubernetesVersion)
if cfg.KubernetesConfig.ShouldLoadCachedImages {
if err := machine.LoadImages(&cfg, k.c, images, constants.ImageCacheDir); err != nil {
out.FailureT("Unable to load cached images: {{.error}}", out.V{"error": err})

View File

@ -17,7 +17,6 @@ limitations under the License.
package machine
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
@ -141,7 +140,6 @@ func CacheAndLoadImages(images []string) error {
continue // try next machine
}
if status == state.Running.String() { // the not running hosts will load on next start
fmt.Println("got a running", pName)
h, err := api.Load(pName)
if err != nil {
return err
@ -154,7 +152,6 @@ func CacheAndLoadImages(images []string) error {
if err != nil {
return err
}
fmt.Printf("inside CacheAndLoadImages, \n images %+v \n ", images)
err = LoadImages(c, cr, images, constants.ImageCacheDir)
if err != nil {
glog.Warningf("Failed to load cached images for profile %s. make sure the profile is running. %v", pName, err)