projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d155bef
)
Fixed to use uname instead of environ
author
Peter Iannucci
<iannucci@mit.edu>
Sat, 21 Feb 2009 03:21:57 +0000
(22:21 -0500)
committer
Peter Iannucci
<iannucci@mit.edu>
Sat, 21 Feb 2009 03:21:57 +0000
(22:21 -0500)
svn path=/trunk/packages/invirt-web/; revision=2184
code/main.py
patch
|
blob
|
history
diff --git
a/code/main.py
b/code/main.py
index
b6f7b7f
..
b0fa833
100755
(executable)
--- 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 == '':