Use hostname instead of planetlab.org if config file can't be found.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Thu, 24 Apr 2008 20:39:29 +0000 (20:39 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Thu, 24 Apr 2008 20:39:29 +0000 (20:39 +0000)
pl_mom.py

index f058eb4..bcb77c4 100644 (file)
--- 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):
     """