if not config.myslice.portal_version:
try:
- PORTAL_VERSION = subprocess.check_output(["git", "describe"])
+ v = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"])
+ PORTAL_VERSION = '-'.join(v.split('-')[:-1])
except:
PORTAL_VERSION = 'not using git'
#DEFAULT_FROM_EMAIL = "root@theseus.ipv6.lip6.fr"
#EMAIL_HOST_PASSWORD = "mypassword"
+if config.myslice.default_sender:
+ DEFAULT_FROM_EMAIL = config.myslice.default_sender
+
EMAIL_HOST = "localhost"
EMAIL_PORT = 25
EMAIL_USE_TLS = False
####SLA#####
-SLA_COLLECTOR_URL = "http://157.193.215.125:4001/sla-collector/sla"
+SLA_COLLECTOR_URL = "https://157.193.215.125:4001/sla-collector/sla"
SLA_COLLECTOR_USER = "portal"
SLA_COLLECTOR_PASSWORD = "password"