Skip to content

Commit

Permalink
Refactoring a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
bbielinski-splunk committed Dec 11, 2023
1 parent f6f8a0c commit 8610c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ def _add_attachments(self, outer, attachments, action_result, message_encoding):
return action_result.set_status(phantom.APP_ERROR, SMTP_ERROR_SMTP_SEND_EMAIL)

phantom_home_path = self.get_phantom_home()
report_dir_pre_4_0 = f"{phantom_home_path}/www/reports"
report_dir_post_4_0 = f"{phantom_home_path}/vault/reports"
report_dir_pre_4_0 = os.path.join(phantom_home_path, "www", "reports")
report_dir_post_4_0 = os.path.join(phantom_home_path, "vault", "reports")

filename = ''
for report_dir in (report_dir_post_4_0, report_dir_pre_4_0):
Expand Down

0 comments on commit 8610c69

Please sign in to comment.