Revision e524ed5f snf-cyclades-app/synnefo/api/servers.py

b/snf-cyclades-app/synnefo/api/servers.py
162 162
    #                       overLimit (413)
163 163

  
164 164
    log.debug('list_servers detail=%s', detail)
165
    user_vms = VirtualMachine.objects.filter(userid=request.user_uniq,
166
                                             deleted=False)
165
    user_vms = VirtualMachine.objects.filter(userid=request.user_uniq)
167 166

  
168 167
    since = util.isoparse(request.GET.get('changes-since'))
169 168
    if since:
170 169
        user_vms = user_vms.filter(updated__gte=since)
171 170
        if not user_vms:
172 171
            return HttpResponse(status=304)
172
    else:
173
        user_vms = user_vms.filter(deleted=True)
173 174

  
174 175
    servers = [vm_to_dict(server, detail) for server in user_vms]
175 176

  

Also available in: Unified diff