mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-11 07:15:15 +00:00
fix(clean local output dirs): change function description (#3068)
Co-authored-by: Pepe Fagoaga <pepe@verica.io>
This commit is contained in:
@@ -8,7 +8,7 @@ from prowler.lib.logger import logger
|
||||
|
||||
def clean_provider_local_output_directories(args):
|
||||
"""
|
||||
clean_provider_local_output_directories cleans deletes local custom dirs when output is sent to remote provider storage
|
||||
clean_provider_local_output_directories deletes the output files generated locally in custom directories when the output is sent to a remote storage provider
|
||||
"""
|
||||
try:
|
||||
# import provider cleaning function
|
||||
@@ -26,7 +26,7 @@ def clean_provider_local_output_directories(args):
|
||||
|
||||
|
||||
def clean_aws_local_output_directories(args):
|
||||
"""clean_aws_provider_local_output_directories deletes local custom dirs when output is sent to remote provider storage for aws provider"""
|
||||
"""clean_aws_local_output_directories deletes the output files generated locally in custom directories when output is sent to a remote storage provider for AWS"""
|
||||
if args.output_bucket or args.output_bucket_no_assume:
|
||||
if args.output_directory != default_output_directory:
|
||||
rmtree(args.output_directory)
|
||||
|
||||
Reference in New Issue
Block a user