Revision 685b219e logic/utils.py

b/logic/utils.py
32 32
        r = VirtualMachine.RSAPI_STATE_FROM_OPER_STATE[vm.operstate]
33 33
    except KeyError:
34 34
        return "UNKNOWN"
35
    # A machine is DELETED if the deleted flag has been set
36
    if vm.deleted:
37
        return "DELETED"
35 38
    # A machine is in REBOOT if an OP_INSTANCE_REBOOT request is in progress
36 39
    if r == 'ACTIVE' and vm.backendopcode == 'OP_INSTANCE_REBOOT' and \
37 40
        vm.backendjobstatus in ('queued', 'waiting', 'running'):

Also available in: Unified diff