Ignore:
Timestamp:
Dec 20, 2009, 9:47:31 PM (15 years ago)
Author:
broder
Message:

main.py: small Python style improvement

File:
1 edited

Legend:

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

    r2717 r2720  
    443443        else:
    444444            m.uptime = xmlist[m]['uptime']
     445            installing[m] = bool(xmlist[m].get('autoinstall'))
    445446            if xmlist[m]['console']:
    446447                has_vnc[m] = True
     
    449450            else:
    450451                has_vnc[m] = "ParaVM"
    451             if xmlist[m].get('autoinstall'):
    452                 installing[m] = True
    453             else:
    454                 installing[m] = False
    455452    max_memory = validation.maxMemory(username, state)
    456453    max_disk = validation.maxDisk(username)
Note: See TracChangeset for help on using the changeset viewer.