Changeset 136
- Timestamp:
- Oct 8, 2007, 2:36:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r135 r136 275 275 has_vnc = {} 276 276 uptimes = getUptimes(machines) 277 on = has_vnc = uptimes 277 on = uptimes 278 for m in machines: 279 if on.get(m.name) and m.type.hvm: 280 has_vnc[m.name] = True 281 else: 282 has_vnc[m.name] = False 278 283 # for m in machines: 279 284 # status = statusInfo(m) … … 437 442 ('owner', 'Owner'), 438 443 ('contact', 'Contact'), 444 ('type', 'Type'), 439 445 'NIC_INFO', 440 446 ('uptime', 'uptime'), … … 453 459 fields = [] 454 460 machine_info = {} 461 machine_info['type'] = machine.type.hvm and 'HVM' or 'ParaVM' 455 462 machine_info['owner'] = machine.owner 456 463 machine_info['contact'] = machine.contact
Note: See TracChangeset
for help on using the changeset viewer.