projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct the incomplete fix from r1155
[invirt/packages/invirt-web.git]
/
code
/
controls.py
diff --git
a/code/controls.py
b/code/controls.py
index
7f5a630
..
7b4558e
100644
(file)
--- a/
code/controls.py
+++ b/
code/controls.py
@@
-43,8
+43,6
@@
def getswap(disksize, memsize):
return int(min(disksize / 4, memsize * 1.5))
def lvinstall(machine, autoinstall):
return int(min(disksize / 4, memsize * 1.5))
def lvinstall(machine, autoinstall):
- #raise InvalidInput('autoinstall', 'install',
- # "The autoinstaller has been temporarily disabled")
disksize = machine.disks[0].size
memsize = machine.memory
swapsize = getswap(disksize, memsize)
disksize = machine.disks[0].size
memsize = machine.memory
swapsize = getswap(disksize, memsize)
@@
-90,7
+88,7
@@
def createVm(username, state, owner, contact, name, description, memory, disksiz
machine.description = description
machine.memory = memory
machine.owner = owner
machine.description = description
machine.memory = memory
machine.owner = owner
- machine.administrator = owner
+ machine.administrator = None
machine.contact = contact
machine.uuid = uuidToString(randomUUID())
machine.boot_off_cd = True
machine.contact = contact
machine.uuid = uuidToString(randomUUID())
machine.boot_off_cd = True