Revision 25891abc
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
100 | 100 |
if status == "success" or (status == "error" and |
101 | 101 |
not vm_exists_in_backend(vm)): |
102 | 102 |
_process_net_status(vm, etime, nics=[]) |
103 |
already_deleted = vm.deleted |
|
104 |
vm.deleted = True |
|
105 | 103 |
vm.operstate = state_for_success |
106 | 104 |
vm.backendtime = etime |
107 |
# Issue and accept commission to Quotaholder |
|
108 |
if not already_deleted: |
|
105 |
if not vm.deleted: |
|
106 |
vm.deleted = True |
|
107 |
# Issue and accept commission to Quotaholder |
|
109 | 108 |
quotas.issue_and_accept_commission(vm, delete=True) |
110 | 109 |
# the above has already saved the object and committed; |
111 | 110 |
# a second save would override others' changes, since the |
Also available in: Unified diff