From 4ca2f605619dbd27486906ffc313bc93afd91ce8 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Tue, 29 Aug 2023 14:35:19 +0200 Subject: [PATCH] feat (VOMS2CS): only send a mail if something changed --- src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py b/src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py index fcdb220fe62..9ace724a565 100644 --- a/src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py +++ b/src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py @@ -182,7 +182,7 @@ def execute(self): if self.dryRun: self.log.info("Dry Run: mail won't be sent") self.log.info(mailMsg) - else: + elif voChanged: NotificationClient().sendMail( self.am_getOption("MailTo", voAdminMail), "VOMS2CSAgent run log", mailMsg, self.mailFrom )