From: Peter Iannucci Date: Sat, 21 Feb 2009 03:21:57 +0000 (-0500) Subject: Fixed to use uname instead of environ X-Git-Tag: 0.0.21~9 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/87f5f2ecd88d621e375f43a0dda7e3bcf7d1c070 Fixed to use uname instead of environ svn path=/trunk/packages/invirt-web/; revision=2184 --- 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 == '':