From c3eeca72797a7c7a32ae05b435f031b77d0303a6 Mon Sep 17 00:00:00 2001 From: Ryan Stankiewicz Date: Thu, 20 Jul 2023 16:00:39 +0000 Subject: [PATCH] Remove usage of 'echo' from log collector script When building the minimal image for the efs-plugin container, we do not include the echo script anymore. Therefore, I replaced its usage with ls, which we still include. --- troubleshooting/log_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troubleshooting/log_collector.py b/troubleshooting/log_collector.py index 990feafb7..4e264b4d9 100644 --- a/troubleshooting/log_collector.py +++ b/troubleshooting/log_collector.py @@ -45,7 +45,7 @@ def execute(command, file, shell=False): def collect_driver_files_under_dir(dir_name, file): collect_driver_files_under_dir = ( f"kubectl exec {driver_pod_name} -n kube-system -c efs-plugin -- find {dir_name} " - + r"-type f -exec echo {} \; -exec cat {} \; -exec echo \;" + + r"-type f -exec ls {} \; -exec cat {} \;" ) execute(command=collect_driver_files_under_dir, file=file)