Commits

Cédric Bonhomme committed 72b5d4c

Added missing import of sys

  • Participants
  • Parent commits 283905b

Comments (0)

Files changed (1)

 __license__ = "GPL v3"
 
 import os
+import sys
 import socket
 import json
 import time
             for admin in conf.MAIL_TO:
                 print(email_report)
                 print('')
-                """log_mail(conf.MAIL_FROM, \
+                log_mail(conf.MAIL_FROM, \
                         admin, \
                         email_report+"\n\nHave a nice day !\n\n" + \
-                        "\nThis mail was sent to :\n"+"\n".join(conf.MAIL_TO))"""
+                        "\nThis mail was sent to :\n"+"\n".join(conf.MAIL_TO))
         message = "A system check successfully terminated at " + local_time + "."
-        """for admin in conf.MAIL_TO:
+        for admin in conf.MAIL_TO:
             log_mail(conf.MAIL_FROM, \
                         admin, \
                         message+"\n\nHave a nice day !\n\n" + \
-                        "\nThis mail was sent to :\n"+"\n".join(conf.MAIL_TO))"""
+                        "\nThis mail was sent to :\n"+"\n".join(conf.MAIL_TO))