Changeset 2295 for trunk


Ignore:
Timestamp:
Apr 17, 2009, 12:51:42 PM (15 years ago)
Author:
broder
Message:

When creating a new VM, create the disks in the try/except block so
that everything gets rolled back if that fails.

File:
1 edited

Legend:

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

    r2211 r2295  
    106106        session.save_or_update(disk)
    107107        cache_acls.refreshMachine(machine)
     108        makeDisks(machine)
    108109        session.commit()
    109110    except:
    110111        session.rollback()
    111112        raise
    112     makeDisks(machine)
    113113    try:
    114114        if autoinstall:
Note: See TracChangeset for help on using the changeset viewer.