|
90 | 90 | getCmd := exec.Command("kubectl", "--kubeconfig", kubeconfigPath, |
91 | 91 | "get", "awsclustercontrolleridentity", infrav1.AWSClusterControllerIdentityName, |
92 | 92 | "-o", "jsonpath={.apiVersion}") |
93 | | - output, err := getCmd.CombinedOutput() |
| 93 | + output, err = getCmd.CombinedOutput() |
94 | 94 | Expect(err).NotTo(HaveOccurred(), "Failed to get AWSClusterControllerIdentity: %s", string(output)) |
95 | 95 |
|
96 | 96 | apiVersion := strings.TrimSpace(string(output)) |
@@ -190,7 +190,7 @@ spec: |
190 | 190 | kubectlCmd := exec.Command("kubectl", "--kubeconfig", kubeconfigPath, |
191 | 191 | "get", "awsclustercontrolleridentity", infrav1.AWSClusterControllerIdentityName, |
192 | 192 | "-o", "jsonpath={.apiVersion}") |
193 | | - output, err := kubectlCmd.CombinedOutput() |
| 193 | + output, err = kubectlCmd.CombinedOutput() |
194 | 194 | Expect(err).NotTo(HaveOccurred(), "kubectl get failed: %s", string(output)) |
195 | 195 |
|
196 | 196 | apiVersion := strings.TrimSpace(string(output)) |
|
0 commit comments