From f710480e91350a0ba0998f4e94b940c49e946734 Mon Sep 17 00:00:00 2001 From: Marcin Wielgus Date: Mon, 5 Dec 2016 00:35:15 +0100 Subject: [PATCH] Fix error handling in cluster autoscaler e2e test --- test/e2e/cluster_size_autoscaling.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/cluster_size_autoscaling.go b/test/e2e/cluster_size_autoscaling.go index 1bf5d002df9..e96a611df82 100644 --- a/test/e2e/cluster_size_autoscaling.go +++ b/test/e2e/cluster_size_autoscaling.go @@ -216,7 +216,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() { glog.Infof("Kubectl:%s\n", framework.RunKubectlOrDie("get", "nodes", "-o", "json")) if output, err := exec.Command("gcloud", "compute", "instances", "list", "--project="+framework.TestContext.CloudConfig.ProjectID, - "--zone="+framework.TestContext.CloudConfig.Zone).Output(); err != nil { + "--zone="+framework.TestContext.CloudConfig.Zone).Output(); err == nil { glog.Infof("Gcloud compute instances list: %s", output) } else { glog.Errorf("Failed to get instances list: %v", err) @@ -226,7 +226,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() { if output, err := exec.Command("gcloud", "compute", "instances", "describe", newNode, "--project="+framework.TestContext.CloudConfig.ProjectID, - "--zone="+framework.TestContext.CloudConfig.Zone).Output(); err != nil { + "--zone="+framework.TestContext.CloudConfig.Zone).Output(); err == nil { glog.Infof("Gcloud compute instances describe: %s", output) } else { glog.Errorf("Failed to get instances describe: %v", err)