Standardize on the spelling of "Invirt project"...just because
[invirt/packages/invirt-web.git] / code / controls.py
index 9f5bc48..d21eb7a 100644 (file)
@@ -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():