Revision f90c3d8c logic/backend.py

b/logic/backend.py
1 1
# Copyright 2011 GRNET S.A. All rights reserved.
2

  
3 2
#
4 3
# Redistribution and use in source and binary forms, with or
5 4
# without modification, are permitted provided that the following
......
145 144
    vm.backendjobstatus = None
146 145
    vm.backendlogmsg = None
147 146

  
148
    # Update the relevant flags if the VM is being suspended or destroyed
147
    # Update the relevant flags if the VM is being suspended or destroyed.
148
    # Do not set the deleted flag here, see ticket #721.
149
    #
150
    # The deleted flag is set asynchronously, when an OP_INSTANCE_REMOVE
151
    # completes successfully. Hence, a server may be visible for some time
152
    # after a DELETE /servers/id returns HTTP 204.
153
    #
149 154
    if action == "DESTROY":
150
        vm.deleted = True
155
        # vm.deleted = True
156
        pass
151 157
    elif action == "SUSPEND":
152 158
        vm.suspended = True
153 159
    elif action == "START":

Also available in: Unified diff