Using socket.getfqdn
authorPeter Iannucci <iannucci@mit.edu>
Sat, 21 Feb 2009 03:26:47 +0000 (22:26 -0500)
committerPeter Iannucci <iannucci@mit.edu>
Sat, 21 Feb 2009 03:26:47 +0000 (22:26 -0500)
svn path=/trunk/packages/invirt-web/; revision=2185

code/main.py

index b0fa833..2e95361 100755 (executable)
@@ -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.uname()[1]}])
+            'hostname' : socket.getfqdn()}])
 
 def admin(username, state, path, fields):
     if path == '':