Skip to content

Commit

Permalink
feat (VOMS2CS): only send a mail if something changed
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Aug 29, 2023
1 parent 93f4965 commit 4ca2f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 4ca2f60

Please sign in to comment.