Skip to content

Commit 3d95e05

Browse files
fix: Updating azure_logcollector.go to reflect containerd runtime on Windows (#2260)
* fix: Updating azure_logcollector.go to reflect containerd runtime on Windows Signed-off-by: Mark Rossetti <[email protected]> * Apply suggestions from code review Co-authored-by: James Sturtevant <[email protected]> Co-authored-by: James Sturtevant <[email protected]>
1 parent 6ae5324 commit 3d95e05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/azure_logcollector.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ func windowsK8sLogs(execToPathFn func(outputFileName string, command string, arg
253253
"Get-WinEvent", "-LogName Microsoft-Windows-Hyper-V-Compute-Operational | Select-Object -Property TimeCreated, Id, LevelDisplayName, Message | Sort-Object TimeCreated | Format-Table -Wrap -Autosize",
254254
),
255255
execToPathFn(
256-
"docker.log",
257-
"get-eventlog", "-LogName Application -Source Docker | Select-Object Index, TimeGenerated, EntryType, Message | Sort-Object Index | Format-Table -Wrap -Autosize",
256+
"containerd-containers.log",
257+
"ctr.exe", "-n k8s.io containers list",
258258
),
259259
execToPathFn(
260-
"containers.log",
261-
"docker", "ps -a",
260+
"containerd-tasks.log",
261+
"ctr.exe", "-n k8s.io tasks list",
262262
),
263263
execToPathFn(
264264
"containers-hcs.log",

0 commit comments

Comments
 (0)