Skip to content

Commit

Permalink
fix(clean local output dirs): change function description (#3068)
Browse files Browse the repository at this point in the history
Co-authored-by: Pepe Fagoaga <[email protected]>
  • Loading branch information
n4ch04 and jfagoagas authored Nov 27, 2023
1 parent 523605e commit e4a5d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prowler/providers/common/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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
Expand All @@ -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)

0 comments on commit e4a5d93

Please sign in to comment.