active_machines = [m for m in machines if m.name in xmlist]
mem_usage = sum([x.memory for x in active_machines])
active_machines = [m for m in machines if m.name in xmlist]
mem_usage = sum([x.memory for x in active_machines])
if operation == 'install':
options = dict(arg.split('=', 1) for arg in args)
valid_keys = set(('mirror', 'dist', 'arch', 'imagesize', 'noinstall'))
if operation == 'install':
options = dict(arg.split('=', 1) for arg in args)
valid_keys = set(('mirror', 'dist', 'arch', 'imagesize', 'noinstall'))
max_memory = maxMemory(owner, vms.keys())
if vm_memory > max_memory:
max_memory = maxMemory(owner, vms.keys())
if vm_memory > max_memory:
- print >>sys.stderr, "owner %s requested %d MB of memory for vm %s; %d MB allowed" % (owner, vm_memory, machine_name, max_memory)
+ print >>sys.stderr, "owner %s requested %d MiB of memory for vm %s; %d MiB allowed" % (owner, vm_memory, machine_name, max_memory)