Skip to content

Commit 4ca2f60

Browse files
committed
feat (VOMS2CS): only send a mail if something changed
1 parent 93f4965 commit 4ca2f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/ConfigurationSystem/Agent/VOMS2CSAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def execute(self):
182182
if self.dryRun:
183183
self.log.info("Dry Run: mail won't be sent")
184184
self.log.info(mailMsg)
185-
else:
185+
elif voChanged:
186186
NotificationClient().sendMail(
187187
self.am_getOption("MailTo", voAdminMail), "VOMS2CSAgent run log", mailMsg, self.mailFrom
188188
)

0 commit comments

Comments
 (0)