import dns.resolver
from invirt.database import Machine, NIC, Type, Disk, CDROM, Autoinstall
from invirt.config import structs as config
-from invirt.common import InvalidInput
+from invirt.common import InvalidInput, CodeError
MAX_MEMORY_TOTAL = 512
MAX_MEMORY_SINGLE = 512
If machine is None, this is the owner of a new machine.
"""
- if owner == user:
- return owner
if machine is not None and owner in (machine.owner, None):
return machine.owner
if owner is None: