Revision 1fdd8d69 snf-cyclades-app/synnefo/quotas/__init__.py
b/snf-cyclades-app/synnefo/quotas/__init__.py | ||
---|---|---|
347 | 347 |
resolved it before issuing the new one. |
348 | 348 |
|
349 | 349 |
""" |
350 |
# Try to resolve previous serial |
|
350 |
# Try to resolve previous serial: |
|
351 |
# If action is DESTROY, we must always reject the previous commission, |
|
352 |
# since multiple DESTROY actions are allowed in the same resource (e.g. VM) |
|
353 |
# The one who succeeds will be finally accepted, and all other will be |
|
354 |
# rejected |
|
355 |
force = force or (action == "DESTROY") |
|
351 | 356 |
resolve_commission(resource.serial, force=force) |
352 | 357 |
|
353 | 358 |
serial = issue_commission(resource, action, name=commission_name, |
Also available in: Unified diff