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
Makes deleting VMs work with the access controls.
[invirt/packages/invirt-web.git]
/
controls.py
diff --git
a/controls.py
b/controls.py
index
4099d3b
..
620402b
100644
(file)
--- a/
controls.py
+++ b/
controls.py
@@
-201,6
+201,8
@@
def deleteVM(machine):
ctx.current.save(nic)
for disk in machine.disks:
ctx.current.delete(disk)
+ for access in machine.users:
+ ctx.current.delete(access)
ctx.current.delete(machine)
transaction.commit()
except: