Skip to content

Commit 9a22400

Browse files
committed
use sudo when querying for cni.log
Signed-off-by: Mark Rossett <[email protected]>
1 parent 21d54b5 commit 9a22400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/azure_logcollector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func linuxLogs(execToPathFn func(outputFileName string, command string, args ...
455455
),
456456
execToPathFn(
457457
"cni.log",
458-
"cat", "/var/log/calico/cni/cni.log",
458+
"sudo", "cat", "/var/log/calico/cni/cni.log",
459459
),
460460
// If kube-apiserver fails to come up, its logs aren't accessible via `kubectl logs`.
461461
// Grab them from the node instead.

0 commit comments

Comments
 (0)