Revision 07602322
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
92 | 92 |
# when no instance exists at the Ganeti backend. |
93 | 93 |
# See ticket #799 for all the details. |
94 | 94 |
# |
95 |
if status == 'success' or (status == 'error' and |
|
96 |
vm.operstate == 'ERROR'): |
|
95 |
if (status == 'success' or |
|
96 |
(status == 'error' and (vm.operstate == 'ERROR' or |
|
97 |
vm.action == 'DESTROY'))): |
|
97 | 98 |
_process_net_status(vm, etime, nics=[]) |
98 | 99 |
vm.deleted = True |
99 | 100 |
vm.operstate = state_for_success |
Also available in: Unified diff