Revision 26fef2b9 logic/backend.py

b/logic/backend.py
31 31
    vm.backendlogmsg = logmsg
32 32

  
33 33
    # Notifications of success change the operating state
34
    if status == 'success':
34
    if status == 'success' and VirtualMachine.OPER_STATE_FROM_OPCODE is not None:
35 35
        utils.update_state(vm, VirtualMachine.OPER_STATE_FROM_OPCODE[opcode])
36 36
        # Set the deleted flag explicitly, to cater for admin-initiated removals
37 37
        if opcode == 'OP_INSTANCE_REMOVE':

Also available in: Unified diff