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

Made some changes requested by Broder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-create

    r2134 r2135  
    2424    active_machines = [m for m in machines if m.name in xmlist]
    2525    mem_usage = sum([x.memory for x in active_machines])
    26     return min(quota_single, quota_total-mem_usage)
     26    return min(quota_single, quota_total - mem_usage)
    2727
    2828def choose_host():
     
    3838    machine_name = argv[2]
    3939    args = argv[3:]
    40    
     40
     41    invirt.database.connect()
     42
    4143    if operation == 'install':
    4244        options = dict(arg.split('=', 1) for arg in args)
     
    6365
    6466    if operation == "create":
    65         invirt.database.connect()
    6667        machine = invirt.database.Machine.query().filter_by(name=machine_name).first()
    6768
Note: See TracChangeset for help on using the changeset viewer.