Changeset 2815


Ignore:
Timestamp:
Dec 30, 2009, 3:55:42 PM (15 years ago)
Author:
broder
Message:

Fix modifying powered-on machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/main.py

    r2814 r2815  
    521521    session.begin()
    522522    try:
    523         kws = dict([(kw, fields[kw]) for kw in
     523        kws = dict((kw, fields[kw]) for kw in
    524524         'owner admin contact name description memory vmtype disksize'.split()
    525                     if fields[kw]])
     525                    if fields.get(kw))
    526526        kws['machine_id'] = machine_id
    527527        validate = validation.Validate(username, state, **kws)
Note: See TracChangeset for help on using the changeset viewer.