Skip to content

Commit 0160a01

Browse files
chaenweb-flow
authored andcommitted
sweep: #7181 feat (VOMS2CS): only send a mail if something changed
1 parent 65f54f8 commit 0160a01

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)