mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-21 20:09:23 +02:00
Fix script name
This commit is contained in:
parent
14f5ca8a29
commit
ed7d1d8c4f
1 changed files with 2 additions and 2 deletions
|
@ -40,14 +40,14 @@ class Command(BaseCommand):
|
|||
|
||||
logger.info("Generating report...")
|
||||
try:
|
||||
self.generate_current_metadata_report(directory, file_name, check_path)
|
||||
self.email_current_metadata_report(directory, file_name, check_path)
|
||||
except Exception as err:
|
||||
# TODO - #1317: Notify operations when auto report generation fails
|
||||
raise err
|
||||
else:
|
||||
logger.info(f"Success! Created {file_name} and successfully sent out an email!")
|
||||
|
||||
def generate_current_metadata_report(self, directory, file_name, check_path):
|
||||
def email_current_metadata_report(self, directory, file_name, check_path):
|
||||
"""Creates a current-metadata.csv file under the specified directory,
|
||||
then uploads it to a AWS S3 bucket. This is done for resiliency
|
||||
reasons in the event our application goes down and/or the email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue