Skip to content

Commit 0a62f61

Browse files
committed
fix: correct variable redeclaration in conversion test
Fix compilation errors by changing := to = for variables that are already declared in the same scope (output and err variables).
1 parent e396cbb commit 0a62f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/suites/unmanaged/unmanaged_conversion_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
getCmd := exec.Command("kubectl", "--kubeconfig", kubeconfigPath,
9191
"get", "awsclustercontrolleridentity", infrav1.AWSClusterControllerIdentityName,
9292
"-o", "jsonpath={.apiVersion}")
93-
output, err := getCmd.CombinedOutput()
93+
output, err = getCmd.CombinedOutput()
9494
Expect(err).NotTo(HaveOccurred(), "Failed to get AWSClusterControllerIdentity: %s", string(output))
9595

9696
apiVersion := strings.TrimSpace(string(output))
@@ -190,7 +190,7 @@ spec:
190190
kubectlCmd := exec.Command("kubectl", "--kubeconfig", kubeconfigPath,
191191
"get", "awsclustercontrolleridentity", infrav1.AWSClusterControllerIdentityName,
192192
"-o", "jsonpath={.apiVersion}")
193-
output, err := kubectlCmd.CombinedOutput()
193+
output, err = kubectlCmd.CombinedOutput()
194194
Expect(err).NotTo(HaveOccurred(), "kubectl get failed: %s", string(output))
195195

196196
apiVersion := strings.TrimSpace(string(output))

0 commit comments

Comments
 (0)