Revision 91954b45 snf-cyclades-app/synnefo/logic/backend.py

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

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

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

Also available in: Unified diff