mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fixed wrong pod name in log messages
This commit is contained in:
parent
0a1e58913c
commit
dba85a5c95
@ -255,7 +255,7 @@ func (config *NetworkingTestConfig) DialFromContainer(protocol, dialCommand, con
|
|||||||
var output map[string][]string
|
var output map[string][]string
|
||||||
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
||||||
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
||||||
cmd, config.HostTestContainerPod.Name, stdout, err)
|
cmd, config.TestContainerPod.Name, stdout, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,11 +313,11 @@ func (config *NetworkingTestConfig) GetEndpointsFromContainer(protocol, containe
|
|||||||
// we confirm unreachability.
|
// we confirm unreachability.
|
||||||
framework.Logf("Failed to execute %q: %v, stdout: %q, stderr: %q", cmd, err, stdout, stderr)
|
framework.Logf("Failed to execute %q: %v, stdout: %q, stderr: %q", cmd, err, stdout, stderr)
|
||||||
} else {
|
} else {
|
||||||
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in: %#v", tries, i, stdout, stderr, config.HostTestContainerPod)
|
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in: %#v", tries, i, stdout, stderr, config.TestContainerPod)
|
||||||
var output map[string][]string
|
var output map[string][]string
|
||||||
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
||||||
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
||||||
cmd, config.HostTestContainerPod.Name, stdout, err)
|
cmd, config.TestContainerPod.Name, stdout, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user