Fixed some style errors
[invirt/packages/invirt-web.git] / code / main.py
index dd2b591..9f57f84 100755 (executable)
@@ -51,7 +51,11 @@ class InvirtUnauthWeb(View):
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/unauth.mako")
     def index(self):
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/unauth.mako")
     def index(self):
-        return {'simple': True}
+        d = dict(simple=True)
+        if os.path.exists("/etc/invirt/message"):
+            f = open('/etc/invirt/message')
+            d['serviceMessage']= f.read()
+        return d
 
 class InvirtWeb(View):
     def __init__(self):
 
 class InvirtWeb(View):
     def __init__(self):