Changeset 136 for trunk/web


Ignore:
Timestamp:
Oct 8, 2007, 2:36:21 AM (17 years ago)
Author:
ecprice
Message:

HVM/ParaVM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/main.py

    r135 r136  
    275275    has_vnc = {}
    276276    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
    278283    #     for m in machines:
    279284    #         status = statusInfo(m)
     
    437442                      ('owner', 'Owner'),
    438443                      ('contact', 'Contact'),
     444                      ('type', 'Type'),
    439445                      'NIC_INFO',
    440446                      ('uptime', 'uptime'),
     
    453459    fields = []
    454460    machine_info = {}
     461    machine_info['type'] = machine.type.hvm and 'HVM' or 'ParaVM'
    455462    machine_info['owner'] = machine.owner
    456463    machine_info['contact'] = machine.contact
Note: See TracChangeset for help on using the changeset viewer.