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:
d154e54
)
Fix bug in revision 250.
author
Eric Price
<ecprice@mit.edu>
Tue, 11 Dec 2007 07:08:49 +0000
(
02:08
-0500)
committer
Eric Price
<ecprice@mit.edu>
Tue, 11 Dec 2007 07:08:49 +0000
(
02:08
-0500)
svn path=/trunk/web/; revision=251
validation.py
patch
|
blob
|
history
diff --git
a/validation.py
b/validation.py
index
5443d54
..
0626f86
100644
(file)
--- a/
validation.py
+++ b/
validation.py
@@
-39,7
+39,7
@@
def maxMemory(user, machine=None, on=True):
"""
if not on:
return MAX_MEMORY_SINGLE
- if machine.memory > MAX_MEMORY_SINGLE:
+ if machine is not None and machine.memory > MAX_MEMORY_SINGLE:
# If they've been blessed, let them have it
return machine.memory
machines = getMachinesByOwner(user, machine)