From b175816b1d3fe15a9b62cba06610bccfb069fb38 Mon Sep 17 00:00:00 2001 From: Cristiano Urban Date: Fri, 18 Jun 2021 14:35:41 +0200 Subject: [PATCH] Fixed email message format for import node operaion. Signed-off-by: Cristiano Urban --- transfer_service/import_executor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/transfer_service/import_executor.py b/transfer_service/import_executor.py index 35a8926..d8296d9 100644 --- a/transfer_service/import_executor.py +++ b/transfer_service/import_executor.py @@ -173,6 +173,7 @@ class ImportExecutor(TaskExecutor): self.dbConn.setPhase(self.jobId, "COMPLETED") self.dbConn.setEndTime(self.jobId) + # Send e-mail notification m = Mailer() m.addRecipient("cristiano.urban@inaf.it") msg = f""" @@ -193,9 +194,9 @@ class ImportExecutor(TaskExecutor): m.setMessageWithAttachment("VOSpace import notification", msg, nodeListFile) else: info = f""" - INFO: - this operation involved a number of nodes greater than 10^5, - you will find the results in {self.resDir}. + INFO: + this operation involved a number of nodes greater than 10^5, + you will find the results in {self.resDir}. """ msg += info -- GitLab