From 08d8cfbd95b86fbdbd05f228b1541daa12f03332 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Fri, 9 May 2008 17:11:46 -0400 Subject: [PATCH 1/1] Set the default vm type svn path=/trunk/packages/sipb-xen-www/; revision=515 --- code/main.py | 3 ++- code/templates/functions.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/main.py b/code/main.py index 24fe062..409433d 100755 --- a/code/main.py +++ b/code/main.py @@ -105,8 +105,9 @@ class Defaults: cdrom = '' autoinstall = '' name = '' + type = 'linux-hvm' + def __init__(self, max_memory=None, max_disk=None, **kws): - self.type = Type.get('linux-hvm') if max_memory is not None: self.memory = min(self.memory, max_memory) if max_disk is not None: diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index e1ae309..635f5db 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -36,7 +36,7 @@ $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.de #for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ) #end for -- 1.7.9.5