From: Faiyaz Ahmed Date: Thu, 24 Apr 2008 20:39:29 +0000 (+0000) Subject: Use hostname instead of planetlab.org if config file can't be found. X-Git-Tag: Mom-2.3-1~8 X-Git-Url: http://git.onelab.eu/?p=mom.git;a=commitdiff_plain;h=b3a37e1107e9444789e32efa7641ed6321df32b6 Use hostname instead of planetlab.org if config file can't be found. --- diff --git a/pl_mom.py b/pl_mom.py index f058eb4..bcb77c4 100644 --- a/pl_mom.py +++ b/pl_mom.py @@ -23,8 +23,8 @@ except: print "Warning: Configuration file /etc/planetlab/plc_config.py not found" PLC_NAME = "PlanetLab" PLC_SLICE_PREFIX = "pl" - PLC_MAIL_SUPPORT_ADDRESS = "support@planet-lab.org" - PLC_MAIL_SLICE_ADDRESS = "SLICE@slices.planet-lab.org" + PLC_MAIL_SUPPORT_ADDRESS = "root@" + socket.gethostname() + PLC_MAIL_SLICE_ADDRESS = "SLICE@" + socket.gethostname() def format_bytes(bytes, si = True): """