X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/3afa9eb4126fe5520531f8b82662ae02f2ae936f..2be4309141ec57fc2b2a7b776b2187cd38d6abb7:/code/controls.py?ds=sidebyside diff --git a/code/controls.py b/code/controls.py index 9f5bc48..d21eb7a 100644 --- a/code/controls.py +++ b/code/controls.py @@ -144,8 +144,9 @@ def createVm(username, state, owner, contact, name, description, memory, disksiz makeDisks(machine) if autoinstall: lvinstall(machine, autoinstall) - # tell it to boot with cdrom - bootMachine(machine, cdrom) + else: + # tell it to boot with cdrom + bootMachine(machine, cdrom) return machine def getList():