aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-09-17 13:39:14 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-09-17 13:39:14 +0530
commit4dd0f232ae75a6b26a0188cb4820de6ddd3d34da (patch)
tree603d44fe25dd956418318a5571596f20f35436c1
parentgit mv master/autotua master/master (diff)
downloadautotua-4dd0f232ae75a6b26a0188cb4820de6ddd3d34da.tar.gz
autotua-4dd0f232ae75a6b26a0188cb4820de6ddd3d34da.tar.bz2
autotua-4dd0f232ae75a6b26a0188cb4820de6ddd3d34da.zip
Notify the user if autotua_master is unset
-rw-r--r--slave/autotua/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/slave/autotua/config.py b/slave/autotua/config.py
index 8b1bdb0..2474112 100644
--- a/slave/autotua/config.py
+++ b/slave/autotua/config.py
@@ -44,7 +44,9 @@ if os.path.exists('%s/slave.cfg' % const.CONFIG_PATH):
exec('%s = %s' % (option, cfg.getint('global', option.lower())))
if not AUTOTUA_MASTER:
- raise Exception('You need to set the autotua_master variable in slave.cfg (or AUTOTUA_MASTER in config.py)')
+ print "!!! WARNING: You did not edit the autotua_master variable in slave.cfg (or AUTOTUA_MASTER in config.py)"
+ print "!!! Using default value of http://localhost:8000/"
+ AUTOTUA_MASTER = 'http://localhost:8000'
# Import all the constants now
from const import *