Ignore:
Timestamp:
Dec 19, 2009, 10:00:02 PM (14 years ago)
Author:
price
Message:

main.py: small Python style improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2591 r2642  
    497497        else:
    498498            m.uptime = xmlist[m]['uptime']
     499            installing[m] = bool(xmlist[m].get('autoinstall'))
    499500            if xmlist[m]['console']:
    500501                has_vnc[m] = True
     
    503504            else:
    504505                has_vnc[m] = "ParaVM"
    505             if xmlist[m].get('autoinstall'):
    506                 installing[m] = True
    507             else:
    508                 installing[m] = False
    509506    max_memory = validation.maxMemory(username, state)
    510507    max_disk = validation.maxDisk(username)
Note: See TracChangeset for help on using the changeset viewer.