X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/4ce9e31db6102ba0d2597e2e62d23c484450d85d..87f5f2ecd88d621e375f43a0dda7e3bcf7d1c070:/code/main.py diff --git a/code/main.py b/code/main.py index b6f7b7f..b0fa833 100755 --- a/code/main.py +++ b/code/main.py @@ -608,7 +608,7 @@ def info(username, state, path, fields): def unauthFront(_, _2, _3, fields): """Information for unauth'd users.""" return templates.unauth(searchList=[{'simple' : True, - 'hostname' : os.environ['HOSTNAME'] if 'HOSTNAME' in os.environ else 'xvm.mit.edu'}]) + 'hostname' : os.uname()[1]}]) def admin(username, state, path, fields): if path == '':