Commit 2e9dc7f0 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Revert "Fix bug in dispatcher callback"

This reverts commit 5d40a128fb593ed641400c462f0e00a1b457f76e.
parent 1067d345
......@@ -86,7 +86,8 @@ def process_op_status(vm, etime, jobid, opcode, status, logmsg):
vm.deleted = True
if status in ('canceled', 'error'):
# Special case: if OP_INSTANCE_CREATE fails --> ERROR
if status in ('canceled', 'error') and opcode == 'OP_INSTANCE_CREATE':
utils.update_state(vm, 'ERROR')
# Special case: OP_INSTANCE_REMOVE fails for machines in ERROR,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment