From 87f5f2ecd88d621e375f43a0dda7e3bcf7d1c070 Mon Sep 17 00:00:00 2001 From: Peter Iannucci Date: Fri, 20 Feb 2009 22:21:57 -0500 Subject: [PATCH] Fixed to use uname instead of environ svn path=/trunk/packages/invirt-web/; revision=2184 --- code/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '': -- 1.7.9.5