projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8276b5
)
Fix modifying powered-on machines.
author
Evan Broder
<broder@mit.edu>
Wed, 30 Dec 2009 20:55:42 +0000
(15:55 -0500)
committer
Evan Broder
<broder@mit.edu>
Wed, 30 Dec 2009 20:55:42 +0000
(15:55 -0500)
svn path=/trunk/packages/invirt-web/; revision=2815
code/main.py
patch
|
blob
|
history
diff --git
a/code/main.py
b/code/main.py
index
ecf0305
..
7044167
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-520,9
+520,9
@@
def modifyDict(username, state, machine_id, fields):
olddisk = {}
session.begin()
try:
- kws = dict([(kw, fields[kw]) for kw in
+ kws = dict((kw, fields[kw]) for kw in
'owner admin contact name description memory vmtype disksize'.split()
- if fields[kw]])
+ if fields.get(kw))
kws['machine_id'] = machine_id
validate = validation.Validate(username, state, **kws)
machine = validate.machine