Revision bb649089
b/snf-cyclades-app/synnefo/quotas/__init__.py | ||
---|---|---|
312 | 312 |
"cyclades.ram": 1048576 * flavor.ram} |
313 | 313 |
online_resources = {"cyclades.active_cpu": flavor.cpu, |
314 | 314 |
"cyclades.active_ram": 1048576 * flavor.ram} |
315 |
# No commission for build! Commission has already been issued and |
|
316 |
# accepted, since the VM has been created in DB. |
|
317 |
#if action == "BUILD": |
|
318 |
# resources.update(online_resources) |
|
319 |
# return resources |
|
315 |
if action == "BUILD": |
|
316 |
resources.update(online_resources) |
|
317 |
return resources |
|
320 | 318 |
if action == "START": |
321 | 319 |
if resource.operstate == "STOPPED": |
322 | 320 |
return online_resources |
Also available in: Unified diff