Changeset 2135 for trunk/packages/invirt-remote/server
- Timestamp:
- Feb 17, 2009, 2:16:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-create
r2134 r2135 24 24 active_machines = [m for m in machines if m.name in xmlist] 25 25 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) 27 27 28 28 def choose_host(): … … 38 38 machine_name = argv[2] 39 39 args = argv[3:] 40 40 41 invirt.database.connect() 42 41 43 if operation == 'install': 42 44 options = dict(arg.split('=', 1) for arg in args) … … 63 65 64 66 if operation == "create": 65 invirt.database.connect()66 67 machine = invirt.database.Machine.query().filter_by(name=machine_name).first() 67 68
Note: See TracChangeset
for help on using the changeset viewer.