File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def run(namespace, output_dir):
58
58
collect_events (namespace , output_dir )
59
59
collect_api_resources (namespace , output_dir )
60
60
collect_pods_logs (namespace , output_dir )
61
- archive_files (output_dir )
61
+ archive_files (output_dir , output_dir_name )
62
62
logger .info ("Finished Redis Enterprise log collector" )
63
63
64
64
@@ -172,11 +172,11 @@ def collect_pods_logs(namespace, output_dir):
172
172
logger .info (" + {}" .format (pod ))
173
173
174
174
175
- def archive_files (output_dir ):
175
+ def archive_files (output_dir , output_dir_name ):
176
176
file_name = output_dir + ".tar.gz"
177
177
178
178
with tarfile .open (file_name , "w|gz" ) as tar :
179
- tar .add (output_dir , arcname = file_name + ".tar.gz" )
179
+ tar .add (output_dir , arcname = output_dir_name )
180
180
logger .info ("Archived files into {}" .format (file_name ))
181
181
182
182
try :
You can’t perform that action at this time.
0 commit comments