From d7bc5fe65d556f4174757e657b3c7614289f7186 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sat, 19 Dec 2009 22:00:02 -0500 Subject: [PATCH] main.py: small Python style improvement svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2720 --- code/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/main.py b/code/main.py index 3655352..7c04d25 100755 --- a/code/main.py +++ b/code/main.py @@ -442,16 +442,13 @@ def getListDict(username, state): m.uptime = None else: m.uptime = xmlist[m]['uptime'] + installing[m] = bool(xmlist[m].get('autoinstall')) if xmlist[m]['console']: has_vnc[m] = True elif m.type.hvm: has_vnc[m] = "WTF?" else: has_vnc[m] = "ParaVM" - if xmlist[m].get('autoinstall'): - installing[m] = True - else: - installing[m] = False max_memory = validation.maxMemory(username, state) max_disk = validation.maxDisk(username) checkpoint.checkpoint('Got max mem/disk') -- 1.7.9.5