Changeset 2141 for trunk/packages/invirt-web
- Timestamp:
- Feb 17, 2009, 2:40:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/validation.py
r2134 r2141 115 115 machines = getMachinesByOwner(owner) 116 116 active_machines = [m for m in machines if m.name in g.xmlist_raw] 117 (quota_total, quota_active) = Owner.getVMQuotas( machine.owner if machine elseowner)117 (quota_total, quota_active) = Owner.getVMQuotas(owner) 118 118 if machines.count() >= quota_total: 119 119 return 'You have too many VMs to create a new one.'
Note: See TracChangeset
for help on using the changeset viewer.