Closed VARGA-Peter closed 6 years ago
Hi, Peter: Do you mean so that this identifies the host better as the pool master or standalone host? Is it not already? --Tobias
I mean in the subject of the email. I would have here directly the code lines with the hostname in it.
Line #483:
#send_email(MAIL_TO_ADDR, 'ERROR ' + os.uname()[1] + ' VmBackup.py', status_log)
Line #490
#send_email(MAIL_TO_ADDR,'WARNING ' + os.uname()[1] + ' VmBackup.py', status_log)
Line #497:
#send_email(MAIL_TO_ADDR, 'Success ' + os.uname()[1] + ' VmBackup.py', status_log)
I can probably build that into the next release. We run a custom version in-house that already has that built in, hence I can appreciate having that in the email header.
Coming in the next release (3.23).
I have several XenServer hosts. It would be nice when in the email subject - sent after the job finished -
hostname
would be added. For the moment I adapted it in my local version.