Ignore:
Timestamp:
Feb 17, 2009, 2:40:13 AM (16 years ago)
Author:
iannucci
Message:

fixed a minor bug in validation.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/validation.py

    r2134 r2141  
    115115    machines = getMachinesByOwner(owner)
    116116    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 else owner)
     117    (quota_total, quota_active) = Owner.getVMQuotas(owner)
    118118    if machines.count() >= quota_total:
    119119        return 'You have too many VMs to create a new one.'
Note: See TracChangeset for help on using the changeset viewer.