Commit ad3e0903 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #43804 from Crazykev/wrong-err

Automatic merge from submit-queue fix wrong error return Signed-off-by: 's avatarCrazykev <crazykev@zju.edu.cn> **What this PR does / why we need it**: The err return here is wrong, correct it. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents 4957a232 6f86cd1a
......@@ -2252,7 +2252,7 @@ func (f *Framework) MatchContainerOutput(
}
Logf("Output of node %q pod %q container %q: %s", podStatus.Spec.NodeName, podStatus.Name, container.Name, logs)
}
return fmt.Errorf("expected pod %q success: %v", createdPod.Name, err)
return fmt.Errorf("expected pod %q success: %v", createdPod.Name, podErr)
}
Logf("Trying to get logs from node %s pod %s container %s: %v",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment