X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/89e13567a64d63163ca622fb8e45be5f3ca6d443..e3ef118dac44137bda1374d8e124b095d7f6ad06:/code/controls.py diff --git a/code/controls.py b/code/controls.py index 911c41a..e32b1c2 100644 --- a/code/controls.py +++ b/code/controls.py @@ -105,11 +105,11 @@ def createVm(username, state, owner, contact, name, description, memory, disksiz session.save_or_update(nic) session.save_or_update(disk) cache_acls.refreshMachine(machine) + makeDisks(machine) session.commit() except: session.rollback() raise - makeDisks(machine) try: if autoinstall: lvinstall(machine, autoinstall)