Changeset 2211 for trunk/packages/invirt-web/code
- Timestamp:
- Feb 27, 2009, 11:56:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/controls.py
r2097 r2211 97 97 disk = Disk(machine=machine, 98 98 guest_device_name='hda', size=disksize) 99 nic = NIC.query().filter_by(machine_id=None).fi rst()99 nic = NIC.query().filter_by(machine_id=None).filter_by(reusable=True).first() 100 100 if not nic: #No IPs left! 101 101 raise CodeError("No IP addresses left! "
Note: See TracChangeset
for help on using the changeset viewer.