From b8e7d08968e9efb95110da858bfd09b7ebcdf79e Mon Sep 17 00:00:00 2001 From: Marcin Wielgus Date: Wed, 30 Nov 2016 10:18:44 +0100 Subject: [PATCH] Fix kubectl call in autoscaling e2e test --- test/e2e/cluster_size_autoscaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/cluster_size_autoscaling.go b/test/e2e/cluster_size_autoscaling.go index 58b78c1b788..1bf5d002df9 100644 --- a/test/e2e/cluster_size_autoscaling.go +++ b/test/e2e/cluster_size_autoscaling.go @@ -213,7 +213,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() { if len(newNodesSet) > 1 { By(fmt.Sprintf("Spotted following new nodes in %s: %v", minMig, newNodesSet)) glog.Infof("Usually only 1 new node is expected, investigating") - glog.Infof("Kubectl:%s\n", framework.RunKubectlOrDie("kubectl get nodes -o yaml")) + 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 {