Changeset 770 for trunk/packages
- Timestamp:
- Jul 28, 2008, 8:25:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r693 r770 7 7 import datetime 8 8 import hmac 9 import random 9 10 import sha 10 11 import simplejson … … 12 13 import time 13 14 import urllib 14 import random15 15 from StringIO import StringIO 16 16 … … 42 42 import controls 43 43 from getafsgroups import getAfsGroupMembers 44 import invirt.config 45 invirt_config = invirt.config.load() 44 46 45 47 def pathSplit(path): … … 256 258 token = cPickle.dumps(token) 257 259 token = base64.urlsafe_b64encode(token) 258 if controls.listHost(machine) == 'sx-blade-2.mit.edu': 259 port = 10004 260 else: 261 port = 10003 260 port = 10003 + [config_host["hostname"] for config_host in invirt_config["hosts"] 261 ].index(controls.listHost(machine)) 262 262 263 263 status = controls.statusInfo(machine)
Note: See TracChangeset
for help on using the changeset viewer.