open_nics = NIC.select_by(machine_id=None)
if not open_nics: #No IPs left!
raise CodeError("No IP addresses left! "
- "Contact xvm@mit.edu.")
+ "Contact %s." % config.web.errormail)
nic = open_nics[0]
nic.machine_id = machine.machine_id
nic.hostname = name