Log error before failing in autoscaling e2e

This commit is contained in:
Maciej Pytel 2017-04-27 16:52:53 +02:00
parent 0597a85f51
commit adc1d6a428

View File

@ -458,7 +458,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
})
func execCmd(args ...string) *exec.Cmd {
glog.Info("Executing: %s", strings.Join(args, " "))
glog.Infof("Executing: %s", strings.Join(args, " "))
return exec.Command(args[0], args[1:]...)
}
@ -627,8 +627,8 @@ func addNodePool(name string, machineType string, numNodes int) {
"--project="+framework.TestContext.CloudConfig.ProjectID,
"--zone="+framework.TestContext.CloudConfig.Zone,
"--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput()
framework.ExpectNoError(err)
glog.Infof("Creating node-pool %s: %s", name, output)
framework.ExpectNoError(err)
}
func deleteNodePool(name string) {