Revision 910f80db

b/snf-cyclades-app/synnefo/logic/backend.py
86 86
            vm.deleted = True
87 87
            vm.nics.all().delete()
88 88

  
89
    # Special case: if OP_INSTANCE_CREATE fails --> ERROR
90
    if status in ('canceled', 'error') and opcode == 'OP_INSTANCE_CREATE':
89
    if status in ('canceled', 'error'):
91 90
        utils.update_state(vm, 'ERROR')
92 91

  
93 92
    # Special case: OP_INSTANCE_REMOVE fails for machines in ERROR,

Also available in: Unified diff