From fd7383b857234046a5a18b7f77dfdc7476b80c08 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 19 Oct 2008 14:21:09 -0400 Subject: [PATCH] Don't try to boot up the machine if we're running the autoinstaller svn path=/trunk/packages/sipb-xen-www/; revision=1140 --- code/controls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(): -- 1.7.9.5